'Downsamples the data to save space.
Args:
sampling_interval: The sampling interval in seconds.
Returns:
New ClientStats object with cpu and IO samples downsampled.'

def DownSample(self, sampling_interval=60):

    result = ClientStats(self)
    result.cpu_samples = self.DownsampleList(self.cpu_samples, sampling_interval)
    result.io_samples = self.DownsampleList(self.io_samples, sampling_interval)
    return result
