line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Monitis::FullPageLoadMonitors; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
4
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
38
|
|
5
|
|
|
|
|
|
|
require Carp; |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
5
|
use base 'Monitis'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
666
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub add { |
10
|
0
|
|
|
0
|
1
|
|
my ($self, @params) = @_; |
11
|
|
|
|
|
|
|
|
12
|
0
|
|
|
|
|
|
my @mandatory = qw/name tag locationIds checkInterval url timeout/; |
13
|
0
|
|
|
|
|
|
my @optional = qw/uptimeSLA responseSLA/; |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
my $params = $self->prepare_params(\@params, \@mandatory, \@optional); |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
return $self->api_post('addFullPageLoadMonitor' => $params); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub edit { |
21
|
0
|
|
|
0
|
1
|
|
my ($self, @params) = @_; |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
my @mandatory = |
24
|
|
|
|
|
|
|
qw/monitorId name tag locationIds checkInterval url timeout/; |
25
|
0
|
|
|
|
|
|
my @optional = qw/uptimeSLA responseSLA /; |
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
|
|
|
my $params = $self->prepare_params(\@params, \@mandatory, \@optional); |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
return $self->api_post('addFullPageLoadMonitor' => $params); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub suspend { |
33
|
0
|
|
|
0
|
1
|
|
my ($self, @params) = @_; |
34
|
|
|
|
|
|
|
|
35
|
0
|
|
|
|
|
|
my @mandatory = qw//; |
36
|
0
|
|
|
|
|
|
my @optional = qw/monitorIds tag/; |
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
|
|
|
my $params = $self->prepare_params(\@params, \@mandatory, \@optional); |
39
|
|
|
|
|
|
|
|
40
|
0
|
|
|
|
|
|
return $self->api_post('suspendFullPageLoadMonitor' => $params); |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub activate { |
44
|
0
|
|
|
0
|
1
|
|
my ($self, @params) = @_; |
45
|
|
|
|
|
|
|
|
46
|
0
|
|
|
|
|
|
my @mandatory = qw//; |
47
|
0
|
|
|
|
|
|
my @optional = qw/monitorIds tag/; |
48
|
|
|
|
|
|
|
|
49
|
0
|
|
|
|
|
|
my $params = $self->prepare_params(\@params, \@mandatory, \@optional); |
50
|
|
|
|
|
|
|
|
51
|
0
|
|
|
|
|
|
return $self->api_post('activateFullPageLoadMonitor' => $params); |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
sub delete { |
55
|
0
|
|
|
0
|
1
|
|
my ($self, @params) = @_; |
56
|
|
|
|
|
|
|
|
57
|
0
|
|
|
|
|
|
my @mandatory = qw//; |
58
|
0
|
|
|
|
|
|
my @optional = qw/monitorIds/; |
59
|
|
|
|
|
|
|
|
60
|
0
|
|
|
|
|
|
my $params = $self->prepare_params(\@params, \@mandatory, \@optional); |
61
|
|
|
|
|
|
|
|
62
|
0
|
|
|
|
|
|
return $self->api_post('deleteFullPageLoadMonitor' => $params); |
63
|
|
|
|
|
|
|
} |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
__END__ |