summaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index c6e5dd17..a41d0fe5 100644
--- a/include/common.h
+++ b/include/common.h
@@ -326,7 +326,8 @@ typedef enum
typedef enum
{
ALERT_STATUS_NOT_SENT = 0,
- ALERT_STATUS_SENT
+ ALERT_STATUS_SENT,
+ ALERT_STATUS_FAILED
} zbx_alert_status_t;
/* Item statuses */
@@ -417,6 +418,9 @@ typedef enum
#define ACTION_STATUS_ACTIVE 0
#define ACTION_STATUS_DISABLED 1
+/* Max number of retries for alerts */
+#define ACTION_MAX_RETRIES 3
+
/* Operation types */
#define OPERATION_TYPE_MESSAGE 0
#define OPERATION_TYPE_COMMAND 1