Blitz - Perl module for API access to Blitz
Version 0.01
Blitz provides an interface to the blitz API. Blitz is a performance and load testing application for testing cloud service apps. More information on blitz can be found at http://blitz.io
use Blitz; my $blitz = Blitz->new;
# Create a new Blitz object
my $blitz = Blitz->new;
# Get the currently configured username
my $user = $blitz->username;
# Set the username
my $user = $blitz->username('joe@joe.org');
# Get the currently configured api_key
my $api_key = $blitz->api_key;
# Set the api_key
my $api_key = $blitz->api_key('706d5cfbd3338ba110bfg6f46d91f8f3');
# Get the currently configured host
my $host = $blitz->host;
# Set the host
my $host = $blitz->host('foo.com');
# Get the currently configured port
my $port = $blitz->port;
my $port = $blitz->port(8080);
Have we been authenticated?
my $auth = $blitz->authenticated;
fetches the existing client object, or creates a new Blitz::API->client object
my $client = $blitz->get_client;
# Sprint
$blitz->sprint( { url => 'www.mycoolapp.com', region => 'california', }, callback } );
# Rush
$blitz->rush( { url => 'www.mycoolapp.com', region => 'california', pattern => [ { start => 1, end => 100, duration => 60, } ] }, callback } );
Ben Klaas, <ben at benklaas.com>
<ben at benklaas.com>
Please report any bugs or feature requests to bug-blitz at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Blitz. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-blitz at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Blitz
You can also look for information at:
Github: Open source code repository
http://github.com/bklaas/blitz-perl
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Blitz
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Blitz
CPAN Ratings
http://cpanratings.perl.org/d/Blitz
Search CPAN
http://search.cpan.org/dist/Blitz/
Thanks to Guilherme Hermeto and Kowsik Guruswamy for assistance in understanding the blitz API and requirements of the Perl client.
This software is under the MIT license
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
To install Blitz, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Blitz
CPAN shell
perl -MCPAN -e shell install Blitz
For more information on module installation, please visit the detailed CPAN module installation guide.