aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/monitored.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-26 16:34:29 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-26 16:34:29 +0100
commit5fd8d7b24c42766f6ca86c50fe214283ec43fbb8 (patch)
tree2b917a1f01b63f2f1e9e1a6b4a843d10398d09ac /src/libserver/monitored.h
parent94371677d39be71fd511fd7b99ea199093399bd7 (diff)
downloadrspamd-5fd8d7b24c42766f6ca86c50fe214283ec43fbb8.tar.gz
rspamd-5fd8d7b24c42766f6ca86c50fe214283ec43fbb8.zip
[Feature] Add latency and offline time monitoring
Diffstat (limited to 'src/libserver/monitored.h')
-rw-r--r--src/libserver/monitored.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/libserver/monitored.h b/src/libserver/monitored.h
index 399fb2ea6..4c55a5646 100644
--- a/src/libserver/monitored.h
+++ b/src/libserver/monitored.h
@@ -73,6 +73,27 @@ struct rspamd_monitored *rspamd_monitored_create (
gboolean rspamd_monitored_alive (struct rspamd_monitored *m);
/**
+ * Returns the current offline time for a monitored object
+ * @param m
+ * @return
+ */
+gdouble rspamd_monitored_offline_time (struct rspamd_monitored *m);
+
+/**
+ * Returns the total offline time for a monitored object
+ * @param m
+ * @return
+ */
+gdouble rspamd_monitored_total_offline_time (struct rspamd_monitored *m);
+
+/**
+ * Returns the latency for monitored object (in seconds)
+ * @param m
+ * @return
+ */
+gdouble rspamd_monitored_latency (struct rspamd_monitored *m);
+
+/**
* Explicitly disable monitored object
* @param m
*/