WebService::PagerDuty
version 1.20131219.1627
# for Events API, all parameters are optional my $pager_duty = WebService::PagerDuty->new(); # for Incidents API and Schedules API, these are mandatory my $pager_duty2 = WebService::PagerDuty->new( user => 'test_user', password => 'test_password', subdomain => 'test-sub-domain', # always optional, true by default use_ssl => 1, ); # if you want to get access to all three APIs via # same $pager_duty variable, then use second form # # Events API # my $event = $pager_duty->event( service_key => ... , # required incident_key => ... , # optional %extra_params, ); $event->trigger( %extra_params ); $event->acknowledge( %extra_params ); $event->resolve( %extra_params ); # # Incidents API # my $incidents = $pager_duty->incidents(); $incidents->count( %extra_params ); $incidents->list( %extra_params ); # # Schedules API # my $schedules = $pager_duty->schedules(); $schedules->list( schedule_id => ... , # required since => 'ISO8601date', # required until => 'ISO8601date', # required %extra_params, );
WebService::PagerDuty - is a client library for http://PagerDuty.com
For detailed description of %extra_params (including which of them are required or optional), see PagerDuty site:
Also, you could explore tests in t/ directory of distribution archive.
WebService::PagerDuty - Module to interface with the http://PagerDuty.com service
http://PagerDuty.com, http://oDesk.com
Oleg Kostyuk (cubuanic), <cub@cpan.org>
<cub@cpan.org>
Ryan Olson (Gimpson), <gimpson@cpan.org> - support for api_key
<gimpson@cpan.org>
Same as Perl.
Copyright by oDesk Inc., 2012
All development sponsored by oDesk.
This software is provided "as-is," without any express or implied warranty. In no event shall the author or sponsor be held liable for any damages arising from the use of the software.
Oleg Kostyuk <cub@cpan.org>
This software is Copyright (c) 2013 by Odesk Inc..
This is free software, licensed under:
The (three-clause) BSD License
To install WebService::PagerDuty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::PagerDuty
CPAN shell
perl -MCPAN -e shell install WebService::PagerDuty
For more information on module installation, please visit the detailed CPAN module installation guide.