| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Monitoring::GLPlugin::TableItem; |
|
2
|
|
|
|
|
|
|
our @ISA = qw(Monitoring::GLPlugin::Item); |
|
3
|
|
|
|
|
|
|
|
|
4
|
2
|
|
|
2
|
|
8
|
use strict; |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
214
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
|
7
|
0
|
|
|
0
|
0
|
|
my ($class, %params) = @_; |
|
8
|
0
|
|
|
|
|
|
my $self = {}; |
|
9
|
0
|
|
|
|
|
|
bless $self, $class; |
|
10
|
0
|
|
|
|
|
|
foreach (keys %params) { |
|
11
|
0
|
|
|
|
|
|
$self->{$_} = $params{$_}; |
|
12
|
|
|
|
|
|
|
} |
|
13
|
0
|
0
|
|
|
|
|
if ($self->can("finish")) { |
|
14
|
0
|
|
|
|
|
|
$self->finish(%params); |
|
15
|
|
|
|
|
|
|
} |
|
16
|
0
|
|
|
|
|
|
return $self; |
|
17
|
|
|
|
|
|
|
} |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub check { |
|
20
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
|
21
|
|
|
|
|
|
|
# some tableitems are not checkable, they are only used to enhance other |
|
22
|
|
|
|
|
|
|
# items (e.g. sensorthresholds enhance sensors) |
|
23
|
|
|
|
|
|
|
# normal tableitems should have their own check-method |
|
24
|
|
|
|
|
|
|
} |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |