| 1 | package Mojolicious::Plugin::Minion::Overview::Controller::Dashboard; | ||
| 2 | 1 | ▶ | use Mojo::Base 'Mojolicious::Controller'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | =head2 overview | ||
| 5 | |||
| 6 | Show dashboard overview | ||
| 7 | |||
| 8 | =cut | ||
| 9 | |||
| 10 | 0 | ▶ | sub overview { |
|
Subroutine
overview: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 11 | 0 | my $self = shift; | |
| 12 | |||
| 13 | 0 | my $overview = $self->app->minion_overview | |
| 14 | ->date($self->session('minion_overview_date')) | ||
| 15 | ->overview; | ||
| 16 | |||
| 17 | 0 | return $self->render('minion_overview/dashboard/_overview', | |
| 18 | overview => $overview, | ||
| 19 | ); | ||
| 20 | } | ||
| 21 | |||
| 22 | =head2 search | ||
| 23 | |||
| 24 | Show dashboard metrics | ||
| 25 | |||
| 26 | =cut | ||
| 27 | |||
| 28 | 0 | ▶ | sub search { |
|
Subroutine
search: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 29 | 0 | my $self = shift; | |
| 30 | |||
| 31 | 0 | my $dashboard = $self->app->minion_overview | |
| 32 | ->date($self->session('minion_overview_date')) | ||
| 33 | ->dashboard; | ||
| 34 | |||
| 35 | return $self->render('minion_overview/dashboard/search', | ||
| 36 | overview => $dashboard->{ overview }, | ||
| 37 | workers => $dashboard->{ workers }, | ||
| 38 | 0 | ); | |
| 39 | } | ||
| 40 | |||
| 41 | =head2 workers | ||
| 42 | |||
| 43 | Show dashboard workers | ||
| 44 | |||
| 45 | =cut | ||
| 46 | |||
| 47 | 0 | ▶ | sub workers { |
|
Subroutine
workers: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 48 | 0 | my $self = shift; | |
| 49 | |||
| 50 | 0 | my $workers = $self->app->minion_overview | |
| 51 | ->date($self->session('minion_overview_date')) | ||
| 52 | ->workers; | ||
| 53 | |||
| 54 | 0 | return $self->render('minion_overview/dashboard/_workers', | |
| 55 | workers => $workers, | ||
| 56 | ); | ||
| 57 | } | ||
| 58 | |||
| 59 | 1 | 1; | |