line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::SecurityCenter::API::Status; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
952
|
use warnings; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
69
|
|
4
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
57
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
19
|
use parent 'Net::SecurityCenter::Base'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
9
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
127
|
use Net::SecurityCenter::Utils qw(:all); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
639
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '0.300'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
#------------------------------------------------------------------------------- |
13
|
|
|
|
|
|
|
# METHODS |
14
|
|
|
|
|
|
|
#------------------------------------------------------------------------------- |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub status { |
17
|
|
|
|
|
|
|
|
18
|
1
|
|
|
1
|
1
|
4
|
my ( $self, %args ) = @_; |
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
|
|
7
|
my $tmpl = { |
21
|
|
|
|
|
|
|
fields => { |
22
|
|
|
|
|
|
|
filter => \&sc_filter_array_to_string |
23
|
|
|
|
|
|
|
}, |
24
|
|
|
|
|
|
|
raw => {}, |
25
|
|
|
|
|
|
|
}; |
26
|
|
|
|
|
|
|
|
27
|
1
|
|
|
|
|
9
|
my $params = sc_check_params( $tmpl, \%args ); |
28
|
1
|
|
|
|
|
3
|
my $raw = delete( $params->{'raw'} ); |
29
|
1
|
|
|
|
|
14
|
my $status = $self->client->get( '/status', $params ); |
30
|
|
|
|
|
|
|
|
31
|
1
|
50
|
|
|
|
6
|
if ($raw) { |
32
|
0
|
|
|
|
|
0
|
return $status; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
1
|
|
|
|
|
5
|
return sc_normalize_hash($status); |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
#------------------------------------------------------------------------------- |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
__END__ |