diff options
author | Artjoms Rimdjonoks <artjoms.rimdjonoks@zabbix.com> | 2021-09-08 10:42:56 +0300 |
---|---|---|
committer | Artjoms Rimdjonoks <artjoms.rimdjonoks@zabbix.com> | 2021-09-09 14:41:24 +0300 |
commit | d83edbd6c32da28b3bba37570f7eb039a9d480da (patch) | |
tree | 11b44443b1b3d00894a0abee1611b7be52544ab8 /src/libs/zbxaudit/audit_graph.h | |
parent | 4f13aa68a821fb884b11a5c0c8dcca6f693cf853 (diff) |
........S. [ZBXNEXT-6856] fixed resource type for the graph audit
Diffstat (limited to 'src/libs/zbxaudit/audit_graph.h')
-rw-r--r-- | src/libs/zbxaudit/audit_graph.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/libs/zbxaudit/audit_graph.h b/src/libs/zbxaudit/audit_graph.h index e1351e6a2e9..a64f03cbab5 100644 --- a/src/libs/zbxaudit/audit_graph.h +++ b/src/libs/zbxaudit/audit_graph.h @@ -25,10 +25,7 @@ #include "../zbxdbhigh/template.h" -#define PREPARE_AUDIT_GRAPH_H(funcname) \ -void zbx_audit_##funcname##_create_entry(int audit_action, zbx_uint64_t graphiid, const char *name); -PREPARE_AUDIT_GRAPH_H(graph) -PREPARE_AUDIT_GRAPH_H(graph_prototype) +void zbx_audit_graph_create_entry(int audit_action, zbx_uint64_t graphid, const char *name, int flags); void zbx_audit_graph_update_json_add_data(zbx_uint64_t graphid, const char *graph_copy_name, int width, int height, double yaxismin, double yaxismax, zbx_uint64_t templateid, int show_work_period, int show_triggers, @@ -61,11 +58,9 @@ PREPARE_AUDIT_GRAPH_UPDATE(ymin_itemid, uint64_t) PREPARE_AUDIT_GRAPH_UPDATE(ymax_itemid, uint64_t) PREPARE_AUDIT_GRAPH_UPDATE(discover, int) PREPARE_AUDIT_GRAPH_UPDATE(templateid, uint64_t) - #undef PREPARE_AUDIT_GRAPH_UPDATE -void zbx_audit_graph_update_json_update_gitem_create_entry(zbx_uint64_t graphid, int flags, - zbx_uint64_t gitemid); +void zbx_audit_graph_update_json_update_gitem_create_entry(zbx_uint64_t graphid, int flags, zbx_uint64_t gitemid); #define PREPARE_AUDIT_GRAPH_UPDATE(resource, type1) \ void zbx_audit_graph_update_json_update_gitem_update_##resource(zbx_uint64_t graphid, unsigned char flags, \ |