summaryrefslogtreecommitdiffstats
path: root/database/sqlite/sqlite_health.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-01 06:15:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-01 06:15:04 +0000
commite970e0b37b8bd7f246feb3f70c4136418225e434 (patch)
tree0b67c0ca45f56f2f9d9c5c2e725279ecdf52d2eb /database/sqlite/sqlite_health.h
parentAdding upstream version 1.31.0. (diff)
downloadnetdata-e970e0b37b8bd7f246feb3f70c4136418225e434.tar.xz
netdata-e970e0b37b8bd7f246feb3f70c4136418225e434.zip
Adding upstream version 1.32.0.upstream/1.32.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'database/sqlite/sqlite_health.h')
-rw-r--r--database/sqlite/sqlite_health.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/database/sqlite/sqlite_health.h b/database/sqlite/sqlite_health.h
new file mode 100644
index 000000000..3b9460897
--- /dev/null
+++ b/database/sqlite/sqlite_health.h
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#ifndef NETDATA_SQLITE_HEALTH_H
+#define NETDATA_SQLITE_HEALTH_H
+#include "../../daemon/common.h"
+#include "sqlite3.h"
+
+extern sqlite3 *db_meta;
+extern void sql_health_alarm_log_load(RRDHOST *host);
+extern int sql_create_health_log_table(RRDHOST *host);
+extern void sql_health_alarm_log_update(RRDHOST *host, ALARM_ENTRY *ae);
+extern void sql_health_alarm_log_insert(RRDHOST *host, ALARM_ENTRY *ae);
+extern void sql_health_alarm_log_save(RRDHOST *host, ALARM_ENTRY *ae);
+extern void sql_health_alarm_log_cleanup(RRDHOST *host);
+extern int alert_hash_and_store_config(uuid_t hash_id, struct alert_config *cfg);
+extern void sql_aclk_alert_clean_dead_entries(RRDHOST *host);
+#endif //NETDATA_SQLITE_HEALTH_H