App::MonM::Notifier::Agent - App::MonM::Notifier agent
Version 1.01
use App::MonM::Notifier::Agent; my $agent = new App::MonM::Notifier::Agent( configobj => $app->configobj, users => [qw/foo bar/], );
This module provides agent methods.
my $agent = new App::MonM::Notifier::Agent( configobj => $app->configobj, users => [qw/foo bar/], );
CTK config object
The list of users
my $configobj = $agent->config;
Returns CTK config object
$agent->create( to => "test", subject => $sbj, message => $msg, ) or die($agent->error);
Creates message and returns status of operation
my $error = $agent->error; my $status = $agent->error( "error text" );
Returns error string if no arguments. Sets error string also sets status to false (if error string is not false) or to true (if error string is false) and returns this status
if ($agent->status) { # OK } else { # ERROR }
Returns object's status. 1 - OK, 0 - ERROR
my $status = $agent->status( 1 );
Sets new status and returns it
my $store = $agent->store;
Returns current store object
$agent->trysend() or die($agent->error);
Tries to send all active messages
See Changes file
Changes
CTK, App::MonM
See TODO file
TODO
* none noted
CTK
Serż Minus (Sergey Lepenkov) http://www.serzik.com <abalama@cpan.org>
Copyright (C) 1998-2019 D&D Corporation. All Rights Reserved
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/
LICENSE
To install App::MonM::Notifier, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::MonM::Notifier
CPAN shell
perl -MCPAN -e shell install App::MonM::Notifier
For more information on module installation, please visit the detailed CPAN module installation guide.