NAME
WebService::Raygun - Connect to the Raygun.io API
SYNOPSIS
use WebService::Raygun::Message;
use WebService::Raygun::Messenger;
my $message = WebService::Raygun::Message->new(
user => 'null@null.com',
client => {
name => 'something',
version => 2,
clientUrl => 'www.null.com'
},
error => {
stack_trace => [ { line_number => 34 } ]
},
environment => {
processor_count => 2,
cpu => 34,
architecture => 'x84',
total_physical_memory => 3
},
request => HTTP::Request->new(
POST => 'https://www.null.com',
[ 'Content-Type' => 'text/html', ]
),
);
my $message = $message->arm_the_laser;
my $raygun = WebService::Raygun::Messenger->new( api_key => '<your raygun.io api key>' );
my $response = $raygun->fire_raygun($message);
DESCRIPTION
Interface for the Raygun.io API.
DEPENDENCIES
You will need to have an API key from raygun.io. By default, this module checks $ENV{RAYGUN_API_KEY}
.
- DateTime
- JSON
- Mouse
- POSIX
- URI
- parent
- strict
- warnings