Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrejs Kozlovs <andrejs.kozlovs@zabbix.com>2021-02-24 15:40:15 +0300
committerAndrejs Kozlovs <andrejs.kozlovs@zabbix.com>2021-02-24 15:55:21 +0300
commit2aa6a4b1c1e5e179c4f7f92426c38ed5c962656d (patch)
tree04a4e4fe78b44ad0b05b3dd6851febdaed04ad31 /include/export.h
parent3a9d3250ac4e2abb329928b105f6cde4d2051481 (diff)
........S. [ZBXNEXT-6442] added ExportType server parameter for better configurability of real-time export
Merge in ZBX/zabbix from feature/ZBXNEXT-6442-5.0 to release/5.0 * commit 'f105a055a024e540ebf552718fd54d562ab37260': ........S. [ZBXNEXT-6442] minor changes ........S. [ZBXNEXT-6442] code review rework 2 ........S. [ZBXNEXT-6442] code review rework ........S. [ZBXNEXT-6442] fixed crash ........S. [ZBXNEXT-6442] removed empty line ........S. [ZBXNEXT-6442] improved configuration possibilities of Real Time Export (cherry picked from commit bf9103f52a8726359be86c62b3cdc8b1724a61b4) (cherry picked from commit c4e858e5a2620512bf47de9cc4dfe57e6fb432c9)
Diffstat (limited to 'include/export.h')
-rw-r--r--include/export.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/export.h b/include/export.h
index 94c7d66f1e5..06783d8dd64 100644
--- a/include/export.h
+++ b/include/export.h
@@ -20,7 +20,12 @@
#ifndef ZABBIX_EXPORT_H
#define ZABBIX_EXPORT_H
-int zbx_is_export_enabled(void);
+#define ZBX_FLAG_EXPTYPE_EVENTS 1
+#define ZBX_FLAG_EXPTYPE_HISTORY 2
+#define ZBX_FLAG_EXPTYPE_TRENDS 4
+
+int zbx_validate_export_type(char *export_type, uint32_t *export_mask);
+int zbx_is_export_enabled(uint32_t flags);
int zbx_export_init(char **error);
void zbx_problems_export_init(const char *process_name, int process_num);
@@ -30,6 +35,8 @@ void zbx_problems_export_flush(void);
void zbx_history_export_init(const char *process_name, int process_num);
void zbx_history_export_write(const char *buf, size_t count);
void zbx_history_export_flush(void);
+
+void zbx_trends_export_init(const char *process_name, int process_num);
void zbx_trends_export_write(const char *buf, size_t count);
void zbx_trends_export_flush(void);