Akamai-Open-DiagnosticTools
view release on metacpan or search on metacpan
lib/Akamai/Open/DiagnosticTools.pm view on Meta::CPAN
I<baseurl()> is a I<Moose> powered getter/setter method, to set
and receive the object's assigned baseurl.
=head2 $diag->locations()
To initiate diagnostinc actions inside the Akamai network, you'll
need the information about the locations from which diagnostic
actions are available.
I<locations()> provides the informations. On success it returns a
Perl-style array reference. On error it returns I<undef> and sets
the I<last_error()> appropriate.
=head2 $diag->mtr($hash_ref)
I<mtr()> returns a network trace like the well know I<mtr> Unix command.
I<mtr()> accepts the following parameters in $hash_ref as a Perl-style
hash reference:
=over 4
=item * destinationDomain
The domain name you want to get information about. Example: I<cpan.org>.
This parameter is mandatory.
=item * location
lib/Akamai/Open/DiagnosticTools.pm view on Meta::CPAN
servers using the I<locations()> call. This paramter is optional.
Either location or sourceIp has to be passed to I<mtr()>
=item * sourceIp
A Akamai Server IP you want to run mtr from. This paramter is optional.
Either location or sourceIp has to be passed to I<mtr()>
=back
On success it returns a Perl-style hash reference. On error it returns
I<undef> and sets the I<last_error()> appropriate.
The hash reference has the following format:
{
'source' => ...,
'packetLoss' => '...',
'destination' => '...',
'errorString' => ...,
'analysis' => '...',
lib/Akamai/Open/DiagnosticTools.pm view on Meta::CPAN
'sent' => '...',
'best' => '...'
}
]
}
=head2 $diag->dig($hash_ref)
I<dig()> returns dns information like the well know I<dig> Unix command.
I<dig()> accepts the following parameters in $hash_ref as a Perl-style
hash reference:
=over 4
=item * hostname
The hostname you want to get information about. Example: I<cpan.org>.
This parameter is mandatory.
=item * queryType
lib/Akamai/Open/DiagnosticTools.pm view on Meta::CPAN
servers using the I<locations()> call. This paramter is optional.
Either location or sourceIp has to be passed to I<dig()>
=item * sourceIp
A Akamai Server IP you want to run dig from. This paramter is optional.
Either location or sourceIp has to be passed to I<dig()>
=back
On success it returns a Perl-style hash reference. On error it returns
I<undef> and sets the I<last_error()> appropriate.
The hash reference has the following format:
{
'authoritySection' => [
{
'recordType' => '...',
'domain' => '...',
'value' => '...',
( run in 1.240 second using v1.01-cache-2.11-cpan-49f99fa48dc )