

def __init__(self, collect_every=60):
    Resource.__init__(self)
    self.collector = TimeSeriesCollector()
    self.collector.start_twisted(collect_every=collect_every)
    self.putChild('graph', static.Data(GRAPH_HTML.strip(), 'text/html'))
    self.putChild('graph_data', TimeSeriesDataResource(self.collector))
    self.putChild('combined', TimeSeriesCombinedResource(self.collector))

dataset/ETHPy150Open wadey/python-ostrich/ostrich/twisted/__init__.py StatsTimeSeriesResource.__init__/original