master
h 20 lines 784 Bytes
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #ifndef NETDATA_SQLITE_ACLK_ALERT_H
4 #define NETDATA_SQLITE_ACLK_ALERT_H
5
6 extern sqlite3 *db_meta;
7
8 void aclk_send_alert_configuration(char *config_hash);
9 void aclk_push_alert_config_event(char *node_id, char *config_hash);
10 bool alert_hash_has_transitioned(nd_uuid_t *hash_id);
11 void alert_hash_mark_sent(nd_uuid_t *hash_id);
12 void aclk_start_alert_streaming(char *node_id, uint64_t cloud_version);
13 void aclk_alert_version_check(char *node_id, char *claim_id, uint64_t cloud_version);
14
15 void send_alert_snapshot_to_cloud(RRDHOST *host __maybe_unused);
16 bool process_alert_pending_queue(RRDHOST *host);
17 void aclk_push_alert_events_for_all_hosts(void);
18 uint64_t calculate_node_alert_version(RRDHOST *host);
19
20 #endif //NETDATA_SQLITE_ACLK_ALERT_H