Source
xxxxxxxxxx
static int replace_key_param_wildcard_cb(const char *data, int key_type, int level, int num, int quoted, void *cb_data,
/*
** Zabbix
** Copyright (C) 2001-2023 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** 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 General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
/* one item query data - index in hostkeys items */
typedef struct
{
int dcitem_hk_index;
}
zbx_expression_query_one_t;
/* many items query data - matching itemids */
typedef struct
{
zbx_vector_uint64_t itemids;
}
zbx_expression_query_many_t;
/* expression item query */
typedef struct
{
/* query flags, see ZBX_ITEM_QUERY_* defines */
zbx_uint32_t flags;
/* the item query /host/key?[filter] */
zbx_item_query_t ref;
/* the query error */
char *error;
/* the expression item query data, zbx_expression_query_one_t or zbx_expression_query_many_t */
void *data;
}
zbx_expression_query_t;
/* group - hostids cache */
typedef struct
{
char *name;
zbx_vector_uint64_t hostids;
}
zbx_expression_group_t;
/* item - tags cache */
typedef struct