X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd-python.pod;h=0da891f1e47b5aa3dc14eabb7f97fc6b0d7dfc45;hb=b99f2ef5c262080cdd55d4dc056aaf23ba2ff907;hp=ff1cb315cd9bf27a1ebc814116dcd7f3acf820a6;hpb=4c504226901204480bcc4669301137d0bf4c4a87;p=collectd.git diff --git a/src/collectd-python.pod b/src/collectd-python.pod index ff1cb315..0da891f1 100644 --- a/src/collectd-python.pod +++ b/src/collectd-python.pod @@ -16,9 +16,7 @@ collectd-python - Documentation of collectd's C =head1 SYNOPSIS - - Globals true - + LoadPlugin python # ... ModulePath "/path/to/your/python/modules" @@ -47,19 +45,16 @@ The minimum required Python version is I<2.3>. =item B I -Loads the Python plugin I. Unlike most other LoadPlugin lines, this one -should be a block containing the line "Globals true". This will cause collectd -to export the name of all objects in the Python interpreter for all plugins to -see. If you don't do this or your platform does not support it, the embedded -interpreter will start anyway but you won't be able to load certain Python -modules, e.g. "time". +Loads the Python plugin I. =item B I The default encoding for Unicode objects you pass to collectd. If you omit this -option it will default to B on I and B on I. -This is hardcoded in Python and will ignore everything else, including your -locale. +option it will default to B on I. On I it will +always be B, as this function was removed, so this will be silently +ignored. +These defaults are hardcoded in Python and will ignore everything else, +including your locale. =item B I @@ -562,7 +557,7 @@ receive blocks where your callback identifier matches BI. The callback will be called without arguments. -=item register_read(callback[, interval][, data][, name]) -> identifier +=item register_read(callback[, interval][, data][, name]) -> I This function takes an additional parameter: I. It specifies the time between calls to the callback function. @@ -616,7 +611,33 @@ I is either the string that was returned by the register function or a callback function. The identifier will be constructed in the same way as for the register functions. -=item B(I][, I]) -> None +=item B(I) -> I + +Returns the definition of a dataset specified by I. I is a list +of tuples, each representing one data source. Each tuple has 4 values: + +=over 4 + +=item name + +A string, the name of the data source. + +=item type + +A string that is equal to either of the variables B, +B, B or B. + +=item min + +A float or None, the minimum value. + +=item max + +A float or None, the maximum value. + +=back + +=item B(I[, I][, I]) -> None Flush one or all plugins. I and the specified I are passed on to the registered flush-callbacks. If omitted, the timeout defaults