public function loadEntriesFromLastDays($days)
    {
        $entries = $this
            ->entryRepository
            ->getEntriesFromLastDays($days);

        foreach ($entries as $entry) {
            $this
                ->metricsBucket
                ->add($entry);
        }

        return $entries;
    }