NAME
Daemonise::Plugin::PagerDuty - Daemonise PagerDuty plugin
VERSION
version 2.13
SYNOPSIS
This plugin conflicts with other plugins that provide caching, like the Redis plugin.
use Daemonise;
my $d = Daemonise->new();
$d->debug(1);
$d->foreground(1) if $d->debug;
$d->config_file('/path/to/some.conf');
$d->load_plugin('PagerDuty');
$d->configure;
# trigger an event/alert
$d->alert("incident_key", "description", );
# set a key and expire (see WebService::PagerDuty module for more info)
$d->pagerduty->incidents(...);
$d->pagerduty->schedules(...);
$d->pagerduty->event(...);
ATTRIBUTES
pagerduty_api_key
pagerduty_subdomain
pagerduty_service_key
pagerduty
SUBROUTINES/METHODS provided
configure
alert
shortcut for most common used case, to trigger an alert in pagerduty
AUTHOR
Lenz Gschwendtner <norbu09@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Lenz Gschwendtner.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.