diff options
author | Sven Nierlein <sven@nierlein.de> | 2015-10-02 18:15:27 +0200 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2015-10-02 18:15:27 +0200 |
commit | 865f5e1e8940a9e24feb5c48075c76c6a75e6faf (patch) | |
tree | 1d402ed83271424cf0f2c600cd67b4fbeb5adce4 | |
parent | f6b5a9915858012b8ff52313850e6ce6ce4a16b6 (diff) | |
download | monitoring-plugin-perl-865f5e1e8940a9e24feb5c48075c76c6a75e6faf.tar.gz |
add description for getter / setter methods (#107370)
Signed-off-by: Sven Nierlein <sven@nierlein.de>
Original-Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
-rw-r--r-- | lib/Monitoring/Plugin.pm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/Monitoring/Plugin.pm b/lib/Monitoring/Plugin.pm index b39fc7a..9b2e371 100644 --- a/lib/Monitoring/Plugin.pm +++ b/lib/Monitoring/Plugin.pm | |||
@@ -412,6 +412,32 @@ following options: | |||
412 | 412 | ||
413 | =back | 413 | =back |
414 | 414 | ||
415 | =head2 GETTER/SETTER | ||
416 | |||
417 | The following internal variables can be retrieved or set by calling a | ||
418 | method with the respective name. Expect for C<shortname>, don't change | ||
419 | values unless you know what you're doing. | ||
420 | |||
421 | Examples: | ||
422 | |||
423 | use Data::Dumper; | ||
424 | print Dumper($plugin->perfdata); | ||
425 | $plugin->shortname('DifferentName'); | ||
426 | |||
427 | =over | ||
428 | |||
429 | =item shortname | ||
430 | |||
431 | =item perfdata | ||
432 | |||
433 | =item messages | ||
434 | |||
435 | =item opts | ||
436 | |||
437 | =item threshold | ||
438 | |||
439 | =back | ||
440 | |||
415 | =head2 OPTION HANDLING METHODS | 441 | =head2 OPTION HANDLING METHODS |
416 | 442 | ||
417 | C<Monitoring::Plugin> provides these methods for accessing the functionality in C<Monitoring::Plugin::Getopt>. | 443 | C<Monitoring::Plugin> provides these methods for accessing the functionality in C<Monitoring::Plugin::Getopt>. |