Code

perl plugin: Exported plugin_flush*() to Perl.
authorSebastian Harl <sh@tokkee.org>
Sun, 27 Apr 2008 18:56:09 +0000 (20:56 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Wed, 30 Apr 2008 08:40:50 +0000 (10:40 +0200)
commit99c9ed11143554e045e931f643b7b8d30e092d76
treea7f9202ae51af645c27c90e3c1c55aedc226def4
parent71d217e6aa1b0e0df9252831c528e5fcc6838646
perl plugin: Exported plugin_flush*() to Perl.

This adds the following functions to collectd's Perl API which flush the
given plugins using the given interval.

 * Collectd::plugin_flush:
   This function is a frontend to _flush_one() and _flush_all() and
   expects up to two named parameters:
   - timeout => $timeout
   - name    => $name or [ $name1, $name2, ... ]
 * Collectd::plugin_flush_one:
   This function expects exactly two parameters, namely the timeout and
   the plugin name.
 * Collectd::plugin_flush_all:
   This function expects a single parameter, namely the timeout.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
bindings/perl/Collectd.pm
src/perl.c