Source
static void process_triggers(zbx_trigger_copy_t *trigger_copy_template, zbx_hashset_t *host_triggers_descriptions,
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
typedef struct
{
zbx_uint64_t hostid;
zbx_uint64_t triggerid;
char *description;
char *expression;
char *recovery_expression;
zbx_uint64_t templateid;
unsigned char flags;
unsigned char recovery_mode;
unsigned char correlation_mode;
unsigned char manual_close;
char *opdata;
unsigned char discover;
char *event_name;
unsigned char priority;
char *comments;
char *url;
char *url_name;
char *correlation_tag;
unsigned char status;
unsigned char type;
}
zbx_trigger_copy_t;
ZBX_PTR_VECTOR_DECL(trigger_copies_templates, zbx_trigger_copy_t *)
ZBX_PTR_VECTOR_IMPL(trigger_copies_templates, zbx_trigger_copy_t *)
ZBX_PTR_VECTOR_DECL(trigger_copies_insert, zbx_trigger_copy_t *)
ZBX_PTR_VECTOR_IMPL(trigger_copies_insert, zbx_trigger_copy_t *)
/* TARGET HOST TRIGGER DATA */
typedef struct
{
zbx_uint64_t triggerid;
char *description;
char *expression;