NAME

App::ProcTrends::Commandline - The great new App::ProcTrends::Commandline!

VERSION

Version 0.01

SYNOPSIS

use App::ProcTrends::Commandline;

my $ref = {
    start   => '-1d',
    end     => 'now'
};

my $obj = App::ProcTrends::Commandline->new( $ref );
my $value = $obj->generate_table_data();

SUBROUTINES/METHODS

new

The constructor.
Arguments: none
Returns: the object

table_handler

Generates a table from RRD data
Arguments: none
Returns: the return code from print_table function
Parses a hashref and prints out on the screen.
Arguments: a hashref, output from generate_table_data
Returns: 1 on success

list_handler

Return $ref->{ 'cpu', 'rss' } = [ procs ]
Arguments: none
Returns: return code from print_list()
Prints the list (output from list method) on screen
Arguments: hashref (outcome of list method)
Returns: 1 on success

img_handler

Generates png image files using object params, and store them in $self->{ out_dir }
Arguments: none
Returns: 1 on success

AUTHOR

Satoshi Yagi, <satoshi.yagi at yahoo.com>

BUGS

Please report any bugs or feature requests to bug-app-proctrends-cron at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=App-ProcTrends-Cron. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc App::ProcTrends::Commandline

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2013 Satoshi Yagi.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.