Monitoring::Livestatus::Class::Base::Table(3pm)

Monitoring::Livestatus::Class::Base::Table3pm

Base class for all table objects.

Attributes

ctx

Reference to context object Monitoring::Livestatus::Class

filter

Reference to filter object Monitoring::Livestatus::Class

stats

Reference to filter object Monitoring::Livestatus::Class

table_name

Containts the table name.

statments

Containts all the statments.

options

Containts all the options.

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;

hashref_pk

Returns a hash of hash references.

Example usage:

    my $hashref_pk = $table_obj->search( { } )->hashref_pk();
    print Dumper $hashref_pk;

has_single_primary_key

single_primary_key

build_table_name

build_primary_keys

Releases

6 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8–9
  2. 10–13

Author

See "AUTHOR" in Monitoring::Livestatus::Class and "CONTRIBUTORS" in Monitoring::Livestatus::Class.

From libmonitoring-livestatus-class-perl 0.06-1.1 in Debian 13 (Trixie). Parsed by carta from the page's man source.