def _gather_data_periodic(self, since, period):
        OFFSET = "2 hours" # HACK!
        ctid = ContentType.objects.get_for_model(self).id

        c = connections['default'].cursor()
        c.execute('''SELECT
                        DATE_TRUNC(%s, timestamp - INTERVAL %s),
                        MAX(measurement)
                     FROM dashboard_datum
                     WHERE content_type_id = %s
                       AND object_id = %s
                       AND timestamp >= %s
                     GROUP BY 1;''', [period, OFFSET, ctid, self.id, since])
        return [(calendar.timegm(t.timetuple()), float(m)) for (t, m) in c.fetchall()]
Resolve links where links are instance name strings assigned during building
dataset/ETHPy150Open django/django-dev-dashboard/dashboard/models.py/Metric._gather_data_periodic--crossover with--dataset/ETHPy150Open ioflo/ioflo/ioflo/base/framing.py/Frame.resolve