Source
41
41
void zbx_history_value2str(char *buffer, size_t size, const zbx_history_value_t *value, int value_type);
42
42
void zbx_history_value_print(char *buffer, size_t size, const zbx_history_value_t *value, int value_type);
43
43
void zbx_history_value2variant(const zbx_history_value_t *value, unsigned char value_type, zbx_variant_t *var);
44
44
45
45
/* In most cases zbx_history_record_vector_destroy() function should be used to free the */
46
46
/* value vector filled by zbx_vc_get_value* functions. This define simply better */
47
47
/* mirrors the vector creation function to vector destroying function. */
48
48
#define zbx_history_record_vector_create(vector) zbx_vector_history_record_create(vector)
49
49
50
50
int zbx_history_init(const char *config_history_storage_url, const char *config_history_storage_opts,
51
-
char **error);
51
+
int config_log_slow_queries, char **error);
52
52
void zbx_history_destroy(void);
53
53
54
54
typedef struct
55
55
{
56
56
zbx_uint64_t itemid;
57
57
zbx_history_value_t value;
58
58
zbx_uint64_t lastlogsize;
59
59
zbx_timespec_t ts;
60
60
int mtime;
61
61
unsigned char value_type;