Source
18
18
**/
19
19
20
20
#ifndef ZABBIX_ZBXDIAG_H
21
21
#define ZABBIX_ZBXDIAG_H
22
22
23
23
#include "zbxtypes.h"
24
24
#include "zbxjson.h"
25
25
#include "zbxalgo.h"
26
26
#include "zbxshmem.h"
27
27
28
+
#define ZBX_DIAG_PREPROC_INFO 0x00000001
29
+
#define ZBX_DIAG_PREPROC_SIMPLE (ZBX_DIAG_PREPROC_INFO)
30
+
28
31
typedef enum
29
32
{
30
33
ZBX_DIAGINFO_UNDEFINED = -1,
31
34
ZBX_DIAGINFO_ALL,
32
35
ZBX_DIAGINFO_HISTORYCACHE,
33
36
ZBX_DIAGINFO_VALUECACHE,
34
37
ZBX_DIAGINFO_PREPROCESSING,
35
38
ZBX_DIAGINFO_LLD,
36
39
ZBX_DIAGINFO_ALERTING,
37
40
ZBX_DIAGINFO_LOCKS,
58
61
#define ZBX_DIAG_ALERTING "alerting"
59
62
#define ZBX_DIAG_LOCKS "locks"
60
63
#define ZBX_DIAG_CONNECTOR "connector"
61
64
#define ZBX_DIAG_PROXYBUFFER "proxybuffer"
62
65
63
66
void zbx_diag_map_free(zbx_diag_map_t *map);
64
67
int zbx_diag_parse_request(const struct zbx_json_parse *jp, const zbx_diag_map_t *field_map, zbx_uint64_t
65
68
*field_mask, zbx_vector_ptr_t *top_views, char **error);
66
69
void zbx_diag_add_mem_stats(struct zbx_json *json, const char *name, const zbx_shmem_stats_t *stats);
67
70
int zbx_diag_add_historycache_info(const struct zbx_json_parse *jp, struct zbx_json *json, char **error);
68
-
int zbx_diag_add_preproc_info(const struct zbx_json_parse *jp, struct zbx_json *json, char **error);
69
71
void zbx_diag_add_locks_info(struct zbx_json *json);
70
72
int zbx_diag_add_connector_info(const struct zbx_json_parse *jp, struct zbx_json *json, char **error);
71
73
72
74
void zbx_diag_init(zbx_diag_add_section_info_func_t cb);
73
75
int zbx_diag_get_info(const struct zbx_json_parse *jp, char **info);
74
76
void zbx_diag_log_info(unsigned int flags, char **result);
75
77
76
78
#endif /* ZABBIX_ZBXDIAG_H */