public function getScheduledEvents()
    {
        $schedule = app(Schedule::class);

        $events = array_map(function ($event) {
            $e = $this->convertEvent($event);
            return [
                'schedule' => $e->expression,
                'command' => $e->getCommandName(),
                'timezone' => $e->timezone,
                'mutex' => $e->mutexName(),
                'run_in_background' => $e->runInBackground,
                'without_overlapping' => $e->withoutOverlapping,
                'on_one_server' => $e->onOneServer,
                'next_run_due' => $e->getNextRunDue($e->expression, $e->timezone),
                'next_check_due' => $e->getNextCheckDue($e->expression, $e->timezone)
            ];
        }, $schedule->events());

        return $events;
    }