Source
void lld_override_trigger(const zbx_vector_lld_override_ptr_t *overrides, const char *name, unsigned char *severity,
/*
** 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 itemid;
unsigned char flags;
}
zbx_lld_item_t;
int lld_item_compare_func(const void *d1, const void *d2);
ZBX_PTR_VECTOR_DECL(lld_item_ptr, zbx_lld_item_t*)
typedef struct
{
zbx_uint64_t parent_itemid;
zbx_uint64_t itemid; /* the item, created by the item prototype */
}
zbx_lld_item_link_t;
ZBX_PTR_VECTOR_DECL(lld_item_link_ptr, zbx_lld_item_link_t*)
int lld_item_link_compare_func(const void *d1, const void *d2);
/* lld rule filter condition (item_condition table record) */
typedef struct
{
zbx_uint64_t id;
char *macro;
char *regexp;
zbx_vector_expression_t regexps;
unsigned char op;
}
lld_condition_t;
ZBX_PTR_VECTOR_DECL(lld_condition_ptr, lld_condition_t*)
/* lld rule filter */
typedef struct
{
zbx_vector_lld_condition_ptr_t conditions;
char *expression;
int evaltype;