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:
authorAndris Zeila <andris.zeila@zabbix.com>2020-08-28 10:53:42 +0300
committerAndris Zeila <andris.zeila@zabbix.com>2020-08-28 11:11:02 +0300
commit3b6e07d1ec2ebb46ebe5294da2a71f362c6a5c1c (patch)
tree7f1b166d21c6a822b4b5c7e0deb6c15c37ee6636 /include/preproc.h
parent7fcb4908ac42281568e4e85f3adefe4a9b6ecd5e (diff)
.......PS. [ZBXNEXT-6167] added diaginfo runtime command to log internal diagnostic information
* commit 'b9d85eedee7431f9204ac3a00eea559b81486ae7': (45 commits) .D........ [ZBXNEXT-6167] updated server and proxy man pages .D........ [ZBXNEXT-6167] added changelog entry .......PS. [ZBXNEXT-6167] don't allow runtime command on Zabbix agentd .......PS. [ZBXNEXT-6167] style fix .......PS. [ZBXNEXT-6167] style fix .......PS. [ZBXNEXT-6167] simplified main process waiting for dead children .......PS. [ZBXNEXT-6167] added missing include file, more defines .......PS. [ZBXNEXT-6167] added diaginfo remote command suppor to proxy .......PS. [ZBXNEXT-6167] added comments, minor refactoring ........S. [ZBXNEXT-6167] added remote command support for diaginfo printing on server .......PS. [ZBXNEXT-6167] small style fixes ........S. [ZBXNEXT-6167] fixed value cache diagnostics retrieval with disabled value cache .......PS. [ZBXNEXT-6167] fixed vector not being destroyed on failure .......PS. [ZBXNEXT-6167] fixed vector not being destroyed on failure .......PS. [ZBXNEXT-6167] fixed warning .......PS. [ZBXNEXT-6167] fixed memory leak ........S. [ZBXNEXT-6167] fixed memory leak ........S. [ZBXNEXT-6167] fixed wrong type used when serializing lld top result ........S. [ZBXNEXT-6167] small style fix ........S. [ZBXNEXT-6167] small style fixes ... (cherry picked from commit dabac74c51a9d19db24c871f7f8ec247ac540eeb)
Diffstat (limited to 'include/preproc.h')
-rw-r--r--include/preproc.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/preproc.h b/include/preproc.h
index 9a83845a811..36afc5cf6ba 100644
--- a/include/preproc.h
+++ b/include/preproc.h
@@ -33,6 +33,14 @@ typedef struct
}
zbx_preproc_result_t;
+typedef struct
+{
+ zbx_uint64_t itemid;
+ int values_num;
+ int steps_num;
+}
+zbx_preproc_item_stats_t;
+
/* the following functions are implemented differently for server and proxy */
void zbx_preprocess_item_value(zbx_uint64_t itemid, unsigned char item_value_type, unsigned char item_flags,
@@ -47,4 +55,8 @@ int zbx_preprocessor_test(unsigned char value_type, const char *value, const zbx
const zbx_vector_ptr_t *steps, zbx_vector_ptr_t *results, zbx_vector_ptr_t *history,
char **preproc_error, char **error);
+int zbx_preprocessor_get_diag_stats(int *values_num, int *values_preproc_num, char **error);
+
+
+int zbx_preprocessor_get_top_items(int limit, zbx_vector_ptr_t *items, char **error);
#endif /* ZABBIX_PREPROC_H */