def get_combined(self, name, series=False):
        if name.startswith("counter:"):
            if series:
                return self.get(name)
            else:
                counter = self.stats.get_counter(name[8:]).get()
                if name in self.hourly:
                    counter += sum(self.hourly[name].to_list())
                return counter
        elif name.startswith("timing:"):
            timing = Timing()
            timing.add(self.stats.get_timing(name[7:]).get())
            if name in self.hourly_timings:
                for v in self.hourly_timings[name].to_list():
                    if v:
                        timing.add(v)
            return timing.get()
        else:
            raise NotImplemented("Only counters and timings supported")
dataset/ETHPy150Open wadey/python-ostrich/ostrich/time_series_collector.py/TimeSeriesCollector.get_combined/original