line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Monitis::InternalMonitors; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
4
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
80
|
|
5
|
|
|
|
|
|
|
require Carp; |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
6
|
use base 'Monitis'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
251
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub delete { |
10
|
0
|
|
|
0
|
1
|
|
my ($self, @params) = @_; |
11
|
|
|
|
|
|
|
|
12
|
0
|
|
|
|
|
|
my @mandatory = qw/testIds type/; |
13
|
0
|
|
|
|
|
|
my @optional = qw//; |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
my $params = $self->prepare_params(\@params, \@mandatory, \@optional); |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
return $self->api_post('deleteInternalMonitors' => $params); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub get_all { |
21
|
0
|
|
|
0
|
1
|
|
my ($self, @params) = @_; |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
my @mandatory = qw//; |
24
|
0
|
|
|
|
|
|
my @optional = qw/types tag tagRegExp/; |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
my $params = $self->prepare_params(\@params, \@mandatory, \@optional); |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
|
|
|
return $self->api_get('internalMonitors' => $params); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |