WebService::Raygun::Message - A message to be sent to raygun.io
use WebService::Raygun::Message; # The Raygun.io API expects something like this: my $data = { 'occurredOn' => string, # ISO 8601 'details' => { 'machineName' => string, 'version' => string, 'client' => { 'name' => string, 'version' => string, 'clientUrl' => string }, 'error' => { 'innerError' => string, 'data' => object, 'className' => string, 'message' => string, 'stackTrace' => [ { 'lineNumber' => number, 'className' => string, 'fileName' => string, 'methodName' => string, } ] }, 'environment' => { 'processorCount' => number, 'osVersion' => string, 'windowBoundsWidth' => number, 'windowBoundsHeight' => number, 'resolutionScale' => string, 'currentOrientation' => string, 'cpu' => string, 'packageVersion' => string, 'architecture' => string, 'totalPhysicalMemory' => number, 'availablePhysicalMemory' => number, 'totalVirtualMemory' => number, 'availableVirtualMemory' => number, 'diskSpaceFree' => array, 'deviceName' => string, 'locale' => string, }, 'tags' => array, 'userCustomData' => object, 'request' => { 'hostName' => string, 'url' => string, 'httpMethod' => string, 'iPAddress' => string, 'queryString' => object, 'form' => object, 'headers' => object, 'rawData' => object, }, 'response' => { 'statusCode' => number }, 'user' => { 'identifier' => string }, 'context' => { 'identifier' => string } } };
This module assembles a request for raygun.io.
Must be a valid datetime with timezone offset; eg 2014-06-30T04:30:30+100. Defaults to current time.
An instance of WebService::Raygun::Message::Error. The module uses Mouse type constraints to coerce the argument into a stacktrace object. This is a bit experimental and currently Moose::Exception, Mojo::Exception are supported.
Can be an email address or some other identifier. Note that if an email address is used, raygun.io will try to find a suitable Gravatar to display in the results.
See WebService::Raygun::Message::Request.
See WebService::Raygun::Message::Environment.
Some data from the user.
Default is 200.
Converts a Perl hash to JSON.
To install WebService::Raygun, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Raygun
CPAN shell
perl -MCPAN -e shell install WebService::Raygun
For more information on module installation, please visit the detailed CPAN module installation guide.