diff --git a/app/Http/Controllers/StatusPageController.php b/app/Http/Controllers/StatusPageController.php index 07f1194d..eebe7b68 100644 --- a/app/Http/Controllers/StatusPageController.php +++ b/app/Http/Controllers/StatusPageController.php @@ -131,7 +131,7 @@ class StatusPageController extends AbstractApiController */ public function getMetrics(Metric $metric) { - $type = Binput::get('filter', 'last_hour'); + $type = Binput::get('filter', AutoPresenter::decorate($metric)->view_name); $metrics = app(MetricRepository::class); switch ($type) {