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:
authorVladislavs Sokurenko <vladislavs.sokurenko@zabbix.com>2019-12-18 16:49:06 +0300
committerVladislavs Sokurenko <vladislavs.sokurenko@zabbix.com>2019-12-18 16:49:06 +0300
commit0715024e6c0a7c968383c7087497a50f893e3124 (patch)
tree55aa894533efa6e7c3d991495aa0cdcb5aecbd0b /include/zbxtasks.h
parent5c343a6b4f1ada44edbc39807395be2d1f8174de (diff)
........S. [ZBXNEXT-5287] initial commit of test item execution on Zabbix proxy
Diffstat (limited to 'include/zbxtasks.h')
-rw-r--r--include/zbxtasks.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/zbxtasks.h b/include/zbxtasks.h
index 40693f8ab88..173c318340b 100644
--- a/include/zbxtasks.h
+++ b/include/zbxtasks.h
@@ -26,6 +26,7 @@
#define ZBX_TASK_UPDATE_FREQUENCY 1
#define ZBX_REMOTE_COMMAND_TTL (SEC_PER_MIN * 10)
+#define ZBX_DATA_TTL SEC_PER_MIN
/* task manager task types */
#define ZBX_TM_TASK_UNDEFINED 0
@@ -35,6 +36,8 @@
#define ZBX_TM_TASK_ACKNOWLEDGE 4
#define ZBX_TM_TASK_UPDATE_EVENTNAMES 5
#define ZBX_TM_TASK_CHECK_NOW 6
+#define ZBX_TM_TASK_DATA 7
+#define ZBX_TM_TASK_DATA_RESULT 8
/* task manager task states */
#define ZBX_TM_STATUS_NEW 1
@@ -42,6 +45,9 @@
#define ZBX_TM_STATUS_DONE 3
#define ZBX_TM_STATUS_EXPIRED 4
+/* task data type */
+#define ZBX_TM_DATA_TYPE_TEST_ITEM 0
+
/* the time period after which finished (done/expired) tasks are removed */
#define ZBX_TM_CLEANUP_TASK_AGE SEC_PER_DAY
@@ -64,6 +70,14 @@ zbx_tm_remote_command_t;
typedef struct
{
+ zbx_uint64_t parent_taskid;
+ char *data;
+ int type;
+}
+zbx_tm_data_t;
+
+typedef struct
+{
int status;
char *info;
zbx_uint64_t parent_taskid;
@@ -72,6 +86,14 @@ zbx_tm_remote_command_result_t;
typedef struct
{
+ int status;
+ char *info;
+ zbx_uint64_t parent_taskid;
+}
+zbx_tm_data_result_t;
+
+typedef struct
+{
zbx_uint64_t itemid;
}
zbx_tm_check_now_t;