Source
zbx_uint32_t zbx_connector_pack_top_connectors_result(unsigned char **data, zbx_connector_stat_t **connector_stats,
/*
** 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 objectid;
zbx_timespec_t ts;
char *str;
zbx_vector_uint64_t ids;
}
zbx_connector_object_t;
ZBX_PTR_VECTOR_DECL(connector_object, zbx_connector_object_t)
typedef struct
{
zbx_timespec_t ts;
char *str;
}
zbx_connector_data_point_t;
ZBX_PTR_VECTOR_DECL(connector_data_point, zbx_connector_data_point_t)
typedef struct
{
zbx_uint64_t connectorid;
int values_num;
int links_num;
int queued_links_num;
}
zbx_connector_stat_t;