From 6788a9fb6a58523852db93d352ac20deb326e70a Mon Sep 17 00:00:00 2001 From: Kentaro Hayashi Date: Sat, 13 Jan 2024 20:37:43 +0900 Subject: [PATCH] lua: update explanation about register_notification callback Signed-off-by: Kentaro Hayashi --- src/collectd-lua.pod | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/collectd-lua.pod b/src/collectd-lua.pod index 88aeda9d6..272eb5f0a 100644 --- a/src/collectd-lua.pod +++ b/src/collectd-lua.pod @@ -111,6 +111,11 @@ once for every after B. These are used to clean-up the internal state. They are called once for every shutting down phase. +=item notification functions + +These are used to receive a PUTNOTIF event. They are called once for + every notification phase. + =back =head1 FUNCTIONS @@ -150,6 +155,12 @@ table of values. Function to register shutdown callbacks. The callback function will be called without arguments. +=item register_notification(callback) + +Function to register notification callbacks. +The callback function will be called with one argument passed, which will be a +table of values. + =item log_error, log_warning, log_notice, log_info, log_debug(I) Log a message with the specified severity. -- 2.47.2