line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Armadito::Agent::HTTP::Client::ArmaditoAV::Event; |
2
|
|
|
|
|
|
|
|
3
|
8
|
|
|
8
|
|
19491719
|
use strict; |
|
8
|
|
|
|
|
13
|
|
|
8
|
|
|
|
|
209
|
|
4
|
8
|
|
|
8
|
|
28
|
use warnings; |
|
8
|
|
|
|
|
11
|
|
|
8
|
|
|
|
|
1019
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
0
|
|
|
0
|
1
|
|
my ( $class, %params ) = @_; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
my $self = { |
10
|
|
|
|
|
|
|
"event_type" => $params{jobj}->{"event_type"}, |
11
|
|
|
|
|
|
|
"end_polling" => 0, |
12
|
|
|
|
|
|
|
taskobj => $params{taskobj}, |
13
|
|
|
|
|
|
|
jobj => $params{jobj} |
14
|
0
|
|
|
|
|
|
}; |
15
|
|
|
|
|
|
|
|
16
|
0
|
|
|
|
|
|
bless $self, $class; |
17
|
0
|
|
|
|
|
|
return $self; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub run { |
21
|
0
|
|
|
0
|
1
|
|
my ( $self, %params ) = @_; |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
return $self; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 NAME |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Armadito::Agent::HTTP::Client::ArmaditoAV::Event - ArmaditoAV api event class |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 DESCRIPTION |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
This is a base class for each Events used given by ArmaditoAV /api/event. |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 FUNCTIONS |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head2 run ( $self, %params ) |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Run event related stuff. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head2 new ( $class, %params ) |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Instanciate this class. |
46
|
|
|
|
|
|
|
|