X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd-perl.pod;h=669e3f415ef26ef6b196d4e2a15d22127fdf8c78;hb=38e2d0eff79464e4b9686e135a184411d9307db7;hp=d5401dd4c7aac55bf1f08d8c5cf5ecbd0c9ff733;hpb=76a7816d2c066f2feff5c77e7da58df4dbc982c2;p=collectd.git diff --git a/src/collectd-perl.pod b/src/collectd-perl.pod index d5401dd4..669e3f41 100644 --- a/src/collectd-perl.pod +++ b/src/collectd-perl.pod @@ -1,3 +1,5 @@ +=encoding UTF-8 + =head1 NAME collectd-perl - Documentation of collectd's C @@ -208,7 +210,7 @@ layout looks like this: { values => [123, 0.5], time => time (), - interval => $interval_g, + interval => plugin_get_interval (), host => $hostname_g, plugin => 'myplugin', type => 'myplugin', @@ -415,6 +417,13 @@ The message is passed to all log-callbacks that are registered with collectd. Wrappers around B, using B, B, B, B and B respectively as I. +=item B () + +Returns the interval of the current plugin as a floating point number in +seconds. This value depends on the interval configured within the +C block or the global interval (see L for +details). + =back The following function provides the filter chain C-interface to Perl-modules. @@ -494,6 +503,11 @@ B configuration options (see L for details). This variable keeps the interval in seconds in which the read functions are queried (see the B configuration option). +B This variable should no longer be used in favor of +C (see above). This function takes any plugin-specific +interval settings into account (see the C option of C in +L for details). + =back Any changes to these variables will be globally visible in collectd.