NAME
WebService::Raygun - Connect to the Raygun.io API
SYNOPSIS
use WebService::Raygun::Message;
use WebService::Raygun::Messenger;
# see WebService::Raygun::Message for details of request object.
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 => <integer>,
cpu => <integer>,
architecture => <integer>,
total_physical_memory => <integer>
},
request => HTTP::Request->new(
POST => 'https://www.null.com',
[ 'Content-Type' => 'text/html', ]
),
);
my $message = $message->prepare_raygun;
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
SEE ALSO
- WebService::Raygun::Message
-
Constructs the actual message. See this class for a better description of the fields available or required for the raygun.io API.