File Coverage

blib/lib/Monitis/PredefinedMonitors.pm
Criterion Covered Total %
statement 9 14 64.2
branch n/a
condition n/a
subroutine 3 4 75.0
pod 1 1 100.0
total 13 19 68.4


line stmt bran cond sub pod time code
1             package Monitis::PredefinedMonitors;
2              
3 1     1   5 use warnings;
  1         2  
  1         27  
4 1     1   4 use strict;
  1         2  
  1         30  
5             require Carp;
6              
7 1     1   4 use base 'Monitis';
  1         1  
  1         271  
8              
9             sub custom_report {
10 0     0 1   my ($self, @params) = @_;
11              
12 0           my @mandatory = qw/type/;
13 0           my @optional =
14             qw/period startDate endDate monitorIds tag chart chartWidth chartHeight/;
15              
16 0           my $params = $self->prepare_params(\@params, \@mandatory, \@optional);
17              
18 0           return $self->api_get('report' => $params);
19             }
20              
21             __END__