Pulse-meter minimal port to Perl
Perl
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/Net
t
.gitignore
.travis.yml
Changes
LICENSE
MANIFEST
Makefile.PL
README
README.md
Todo

README.md

Build Status

pulse-meter-perl

Pulse-meter minimal port to Perl

Basic usage

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);

Description

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.