The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

XAS::Lib::Modules::Alerts - The alert module for the XAS environment

SYNOPSIS

Your program can use this module in the following fashion:

 use XAS::Lib::Modules::Alerts;

 my $alert = XAS::Lib::Modules::Alerts->new();

 $alert->send(
     -priority => 'high',
     -facility => 'huston',
     -message  => 'There is a problem'
 );

DESCRIPTION

This is the module for sending alerts within the XAS environment. It will write an "alert" to the alerts spool directory. It is implemented as a singleton and will auto-load when invoked.

METHODS

new

This method initializes the module.

send

This method will send an alert. It takes the following named parameters:

-priority

The notification level, 'high','medium','low'. Default 'low'.

-facility

The notification facility, 'systems', 'dba', etc. Default 'systems'.

-message

The message text for the message

SEE ALSO

XAS

AUTHOR

Kevin L. Esteb, <kevin@kesteb.us>

COPYRIGHT AND LICENSE

Copyright (C) 2014 Kevin L. Esteb

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.

See http://dev.perl.org/licenses/ for more information.