NAME

App::MonM::Checkit - App::MonM checkit class

VIRSION

Version 1.02

SYNOPSIS

use App::MonM::Checkit;

DESCRIPTION

App::MonM checkit class

new

my $checker = new App::MonM::Checkit;

Returns checker object

check

my $ostat = $checker->check({ ... });

Performs checking of checkit-sources by checkit rules (checkit config sections)

Returns status: 0 - PASS; 1 - FAIL

cleanup

my $self = $checker->cleanup;

Flushes all working variables to defaults

code

my $code = $checker->code;
my $newcode = $checker->code(200);

Sets and returns response code (rc)

config

my $conf = $checker->config;

Returns Checkit config structure

content

my $content = $checker->content;
my $newcontent = $checker->content("Foo Bar Baz");

Sets and returns the content value

error

my $error = $checker->error;
my $newerror = $checker->error("Blah-Blah-Blah");

Sets and returns the error value

message

my $message = $checker->message;
my $newmessage = $checker->message("Foo Bar Baz");

Sets and returns the message value

source

my $source = $checker->source;
my $newsource = $checker->source("http://foo.example.com");

Sets and returns the source value

status

my $status = $checker->status;
my $newstatus = $checker->status(1);

Sets and returns the status value

type

my $type = $checker->type;
my $newtype = $checker->type(1);

Sets and returns the type value

HISTORY

See Changes file

TO DO

See TODO file

BUGS

* none noted

SEE ALSO

App::MonM

AUTHOR

Serż Minus (Sergey Lepenkov) http://www.serzik.com <abalama@cpan.org>

COPYRIGHT

Copyright (C) 1998-2019 D&D Corporation. All Rights Reserved

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See LICENSE file and https://dev.perl.org/licenses/