diff options
Diffstat (limited to '')
-rw-r--r-- | src/database/sqlite/sqlite_health.h (renamed from database/sqlite/sqlite_health.h) | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/database/sqlite/sqlite_health.h b/src/database/sqlite/sqlite_health.h index 5549b7525..1b889436e 100644 --- a/database/sqlite/sqlite_health.h +++ b/src/database/sqlite/sqlite_health.h @@ -2,21 +2,22 @@ #ifndef NETDATA_SQLITE_HEALTH_H #define NETDATA_SQLITE_HEALTH_H -#include "../../daemon/common.h" + +#include "daemon/common.h" #include "sqlite3.h" struct sql_alert_transition_data; struct sql_alert_config_data; +struct rrd_alert_prototype; void sql_health_alarm_log_load(RRDHOST *host); void sql_health_alarm_log_save(RRDHOST *host, ALARM_ENTRY *ae); void sql_health_alarm_log_cleanup(RRDHOST *host, bool claimed); -int alert_hash_and_store_config(uuid_t hash_id, struct alert_config *cfg, int store_hash); +int sql_alert_store_config(struct rrd_alert_prototype *ap); void sql_aclk_alert_clean_dead_entries(RRDHOST *host); int sql_health_get_last_executed_event(RRDHOST *host, ALARM_ENTRY *ae, RRDCALC_STATUS *last_executed_status); void sql_health_alarm_log2json(RRDHOST *host, BUFFER *wb, time_t after, const char *chart); int health_migrate_old_health_log_table(char *table); -uint32_t sql_get_alarm_id(RRDHOST *host, STRING *chart, STRING *name, uint32_t *next_event_id, uuid_t *config_hash_id); -uint32_t sql_get_alarm_id_check_zero_hash(RRDHOST *host, STRING *chart, STRING *name, uint32_t *next_event_id, uuid_t *config_hash_id); +uint32_t sql_get_alarm_id(RRDHOST *host, STRING *chart, STRING *name, uint32_t *next_event_id); void sql_alert_transitions( DICTIONARY *nodes, time_t after, |