PulseMeter - Perl implementation of pulse-meter gem
use Redis; use Net::PulseMeter::Sensor::Base; use Net::PulseMeter::Sensor::Timelined::Counter; my $redis = Redis->new; Net::PulseMeter::Sensor::Base->redis($redis); my $sensor = Net::PulseMeter::Sensor::Timelined::Counter->new( "sensor_name", raw_data_ttl => 3600, interval => 10 ); $sensor->event(10);
This module is a minimal implementation of pulse-meter gem client. You can read more about pulse-meter concepts and features in gem documentation.
This module's main purpose is to allow send data to static or timelined sensors from perl client. Note that it just sends data, nothing more: no summarization and visualization is provided.
Basic usage is described in section above. Other sensors are initialized in the same way similar to their ruby counterparts.
Sergey Averyanov, Ilya Averyanov averyanov@gmail.com, ilya.averyanov@gmail.com
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
To install Net::PulseMeter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::PulseMeter
CPAN shell
perl -MCPAN -e shell install Net::PulseMeter
For more information on module installation, please visit the detailed CPAN module installation guide.