line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::SecurityCenter::API::Status; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
825
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
65
|
|
4
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
42
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
10
|
use parent 'Net::SecurityCenter::Base'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
13
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
133
|
use Net::SecurityCenter::Utils qw(:all); |
|
2
|
|
|
|
|
12
|
|
|
2
|
|
|
|
|
596
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '0.311'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
#------------------------------------------------------------------------------- |
13
|
|
|
|
|
|
|
# METHODS |
14
|
|
|
|
|
|
|
#------------------------------------------------------------------------------- |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub status { |
17
|
|
|
|
|
|
|
|
18
|
1
|
|
|
1
|
1
|
3
|
my ( $self, %args ) = @_; |
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
|
|
4
|
my $tmpl = { |
21
|
|
|
|
|
|
|
fields => { |
22
|
|
|
|
|
|
|
filter => \&sc_filter_array_to_string |
23
|
|
|
|
|
|
|
}, |
24
|
|
|
|
|
|
|
raw => {}, |
25
|
|
|
|
|
|
|
}; |
26
|
|
|
|
|
|
|
|
27
|
1
|
|
|
|
|
13
|
my $params = sc_check_params( $tmpl, \%args ); |
28
|
1
|
|
|
|
|
5
|
my $raw = delete( $params->{'raw'} ); |
29
|
1
|
|
|
|
|
11
|
my $status = $self->client->get( '/status', $params ); |
30
|
|
|
|
|
|
|
|
31
|
1
|
50
|
|
|
|
4
|
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__ |