diff --git a/src/Http/Controllers/JobMetricsController.php b/src/Http/Controllers/JobMetricsController.php index f1aa0e93..b09ddf0c 100644 --- a/src/Http/Controllers/JobMetricsController.php +++ b/src/Http/Controllers/JobMetricsController.php @@ -39,12 +39,12 @@ public function index() /** * Get metrics for a given job. * - * @param string $slug + * @param string $id * @return \Illuminate\Support\Collection */ - public function show($slug) + public function show($id) { - return collect($this->metrics->snapshotsForJob($slug))->map(function ($record) { + return collect($this->metrics->snapshotsForJob($id))->map(function ($record) { $record->runtime = round($record->runtime / 1000, 3); $record->throughput = (int) $record->throughput; diff --git a/src/Http/Controllers/QueueMetricsController.php b/src/Http/Controllers/QueueMetricsController.php index 09566e26..5e303ca6 100644 --- a/src/Http/Controllers/QueueMetricsController.php +++ b/src/Http/Controllers/QueueMetricsController.php @@ -39,12 +39,12 @@ public function index() /** * Get metrics for a given queue. * - * @param string $slug + * @param string $id * @return \Illuminate\Support\Collection */ - public function show($slug) + public function show($id) { - return collect($this->metrics->snapshotsForQueue($slug))->map(function ($record) { + return collect($this->metrics->snapshotsForQueue($id))->map(function ($record) { $record->runtime = round($record->runtime / 1000, 3); $record->throughput = (int) $record->throughput;