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 is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license at http://www.perlfoundation.org/artistic_license_2_0.