Source
49
49
50
50
/* In most cases zbx_history_record_vector_destroy() function should be used to free the */
51
51
/* value vector filled by zbx_vc_get_value* functions. This define simply better */
52
52
/* mirrors the vector creation function to vector destroying function. */
53
53
#define zbx_history_record_vector_create(vector) zbx_vector_history_record_create(vector)
54
54
55
55
int zbx_history_init(const char *config_history_storage_url, const char *config_history_storage_opts,
56
56
char **error);
57
57
void zbx_history_destroy(void);
58
58
59
-
int zbx_history_add_values(const zbx_vector_ptr_t *history, int *ret_flush, int config_history_storagte_pipelines);
59
+
int zbx_history_add_values(const zbx_vector_ptr_t *history, int *ret_flush, int config_history_storage_pipelines);
60
60
int zbx_history_get_values(zbx_uint64_t itemid, int value_type, int start, int count, int end,
61
61
zbx_vector_history_record_t *values);
62
62
63
63
int zbx_history_requires_trends(int value_type);
64
64
void zbx_history_check_version(struct zbx_json *json, int *result, int config_allow_unsupported_db_versions,
65
65
const char *config_history_storage_url);
66
66
67
67
#define FLUSH_SUCCEED 0
68
68
#define FLUSH_FAIL -1
69
69
#define FLUSH_DUPL_REJECTED -2