public function reset()
    {
        // For each type of metric, we attempt to set the counter to 0
        foreach (array(self::SUCCESS, self::FAILURE, self::TIMEOUT, self::FALLBACK_SUCCESS,
                       self::FALLBACK_FAILURE, self::EXCEPTION_THROWN,
                       self::RESPONSE_FROM_CACHE) as $type) {
            $now = $this->getTimeInMilliseconds();
            for ($i = 0; $i < $this->rollingStatisticalWindowBuckets; $i++) {
                $bucketIndex = $this->getBucketIndex($i, $now);
                $this->stateStorage->resetBucket($this->commandKey, $type, $bucketIndex);
            }
        }
    }