GrwothForecast::Aggregator::DB - Aggregate from RDBMS
my $aggregator = GrowthForecast::Aggregator::DBMulti->new( names => ['count', 'count_unique'], descriptions => ['Total count of posts', 'Posted bloggers'], query => 'SELECT COUNT(*), COUNT(DISTINCT member_id) FROM entry', ); my $res = $aggregator->run();
This aggregator aggregates data from RDBMS, and post it to GrowthForecast.
Section name.
This module send request to "/api/$service/$section/$name"
Names of the metrics.
This module send request to "/api/$service/$section/$name->[0]", "/api/$service/$section/$name->[1]", ....
Description of the query. The module post it as 'description' parameter.
This is a SQL query, to execute.
Bind parameters for the query.
Data source database handle.
Service name.
Endpoint URL, contains '/api'.
E.g. http://example.com/api/
Instance of HTTP client. I tested on Furl.
To install GrowthForecast::Aggregator::Declare, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GrowthForecast::Aggregator::Declare
CPAN shell
perl -MCPAN -e shell install GrowthForecast::Aggregator::Declare
For more information on module installation, please visit the detailed CPAN module installation guide.