diff options
author | Artjoms Rimdjonoks <artjoms.rimdjonoks@zabbix.com> | 2021-10-01 14:46:18 +0300 |
---|---|---|
committer | Artjoms Rimdjonoks <artjoms.rimdjonoks@zabbix.com> | 2021-10-01 14:46:18 +0300 |
commit | a64c5b511d0b5448e2b045d4f8acb77f472cac37 (patch) | |
tree | 7678a153254665a5ae83cee6a2cbda259ccfd7e7 /src/libs/zbxaudit/audit_trigger.h | |
parent | 2070848cb7a6d92db3297ff6661e00f10c8e6d07 (diff) | |
parent | fd3ff280e0c06b55696df89ad8e3a802962111f8 (diff) |
........S. [ZBX-19889] rebased on master, removed delete_dependency()
Diffstat (limited to 'src/libs/zbxaudit/audit_trigger.h')
-rw-r--r-- | src/libs/zbxaudit/audit_trigger.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libs/zbxaudit/audit_trigger.h b/src/libs/zbxaudit/audit_trigger.h index 22a5d14a973..3e75377f24e 100644 --- a/src/libs/zbxaudit/audit_trigger.h +++ b/src/libs/zbxaudit/audit_trigger.h @@ -52,6 +52,9 @@ PREPARE_AUDIT_TRIGGER_UPDATE_H(comments, const char*) PREPARE_AUDIT_TRIGGER_UPDATE_H(url, const char*) PREPARE_AUDIT_TRIGGER_UPDATE_H(type, int) PREPARE_AUDIT_TRIGGER_UPDATE_H(templateid, zbx_uint64_t) +PREPARE_AUDIT_TRIGGER_UPDATE_H(description, const char*) +PREPARE_AUDIT_TRIGGER_UPDATE_H(expression, const char*) +PREPARE_AUDIT_TRIGGER_UPDATE_H(recovery_expression, const char*) void zbx_audit_DBselect_delete_for_trigger(const char *sql, zbx_vector_uint64_t *ids); void zbx_audit_trigger_update_json_add_dependency(int flags, zbx_uint64_t triggerdepid, @@ -61,4 +64,10 @@ void zbx_audit_trigger_update_json_add_tags_and_values(zbx_uint64_t triggerid, i const char *tag, const char *value); void zbx_audit_trigger_update_json_delete_tags(zbx_uint64_t triggerid, int flags, zbx_uint64_t triggertagid); +#define PREPARE_AUDIT_TRIGGER_UPDATE_TAG_H(resource, type1) \ +void zbx_audit_trigger_update_json_update_tag_##resource(zbx_uint64_t triggerid, zbx_uint64_t triggertagid, \ + type1 resource##_old, type1 resource##_new); +PREPARE_AUDIT_TRIGGER_UPDATE_TAG_H(tag, const char*) +PREPARE_AUDIT_TRIGGER_UPDATE_TAG_H(value, const char*) + #endif /* ZABBIX_AUDIT_TRIGGER_H */ |