summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authoralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-01-30 10:37:56 +0000
committeralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-01-30 10:37:56 +0000
commitfbc8b79bea9d0fb7547b930ed382f98e7e083499 (patch)
tree18b24880333c8e02bec29d78bd938ba6bba7a485 /include
parent1e34b8021aaffb957079ea38549bf30c7622c265 (diff)
Improvement for WEB monitoring.
git-svn-id: svn://svn.zabbix.com/trunk@3770 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include')
-rw-r--r--include/common.h10
-rw-r--r--include/db.h12
2 files changed, 18 insertions, 4 deletions
diff --git a/include/common.h b/include/common.h
index af68d130..832eaea8 100644
--- a/include/common.h
+++ b/include/common.h
@@ -289,9 +289,13 @@ typedef enum
#define ZBX_TABLE_HISTORY_TEXT 4
/* HTTP item types */
-#define ZBX_HTTPITEM_TYPE_RSPCODE 0
-#define ZBX_HTTPITEM_TYPE_TIME 1
-#define ZBX_HTTPITEM_TYPE_SPEED 2
+typedef enum
+{
+ ZBX_HTTPITEM_TYPE_RSPCODE = 0,
+ ZBX_HTTPITEM_TYPE_TIME,
+ ZBX_HTTPITEM_TYPE_SPEED,
+ ZBX_HTTPITEM_TYPE_LASTSTEP
+} zbx_httpitem_type_t;
/* Flags */
#define ZBX_SYNC 1
diff --git a/include/db.h b/include/db.h
index 9eb70f18..65fe6c56 100644
--- a/include/db.h
+++ b/include/db.h
@@ -80,6 +80,7 @@ extern int CONFIG_DBPORT;
#define DB_HTTPTEST struct zbx_httptest_type
#define DB_HTTPSTEP struct zbx_httpstep_type
#define DB_HTTPSTEPITEM struct zbx_httpstepitem_type
+#define DB_HTTPTESTITEM struct zbx_httptestitem_type
#ifdef HAVE_SQLITE3
@@ -414,9 +415,18 @@ DB_HTTPSTEPITEM
zbx_uint64_t httpstepitemid;
zbx_uint64_t httpstepid;
zbx_uint64_t itemid;
- int type;
+ zbx_httpitem_type_t type;
};
+DB_HTTPTESTITEM
+{
+ zbx_uint64_t httptestitemid;
+ zbx_uint64_t httptestid;
+ zbx_uint64_t itemid;
+ zbx_httpitem_type_t type;
+};
+
+
void DBconnect(void);
void DBconnect(void);