NAME
Nagios::MKLivestatus::Class::Base::Table - Base class for all table objects.
SYNOPSIS
my $class = Nagios::MKLivestatus::Class->new(
backend => 'INET',
socket => '10.211.55.140:6557',
);
my $table_obj = $class->table('services');
my $data = $table_obj->search( {} )->hashref_array();
ATTRIBUTES
ctx
Reference to context object Nagios::MKLivestatus::Class
filter
Reference to filter object Nagios::MKLivestatus::Class
stats
Reference to filter object Nagios::MKLivestatus::Class
table_name
Containts the table name.
statments
Containts the all statments.
METHODS
columns
Arguments: $colA, $colB, ...
Return: $self
Set columns...
headers
Returns a array or reference to array, depending on the calling context, of all header columns.
filter
Example usage:
$table_obj->search( { name => 'localhost' } );
$table_obj->search( { name => [ 'localhost', 'gateway' ] } );
$table_obj->search( [ { name => 'localhost' }, { name => 'gateway' } ] );
Returns: $self
hashref_array
Returns a array or reference to array, depending on the calling context.
Example usage:
my $hashref_array = $table_obj->search( { } )->hashref_array;
print Dumper $hashref_array;
build_table_name
AUTHOR
Robert Bohne, <rbo at cpan.org>
COPYRIGHT & LICENSE
Copyright 2009 Robert Bohne.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.