summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Nierlein <sven@nierlein.de>2015-10-02 16:15:27 (GMT)
committerSven Nierlein <sven@nierlein.de>2015-10-02 16:15:27 (GMT)
commit865f5e1e8940a9e24feb5c48075c76c6a75e6faf (patch)
tree1d402ed83271424cf0f2c600cd67b4fbeb5adce4
parentf6b5a9915858012b8ff52313850e6ce6ce4a16b6 (diff)
downloadmonitoring-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.pm26
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
417The following internal variables can be retrieved or set by calling a
418method with the respective name. Expect for C<shortname>, don't change
419values unless you know what you're doing.
420
421Examples:
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
417C<Monitoring::Plugin> provides these methods for accessing the functionality in C<Monitoring::Plugin::Getopt>. 443C<Monitoring::Plugin> provides these methods for accessing the functionality in C<Monitoring::Plugin::Getopt>.