Source
/* mapping of performance counter group/key[rollup type] to its id (net/transmitted[average] -> <id>) */
/*
** 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/>.
**/
/* performance counter value for a specific instance */
typedef struct
{
zbx_uint64_t counterid;
char *instance;
zbx_uint64_t value;
}
zbx_vmware_perf_value_t;
ZBX_PTR_VECTOR_DECL(vmware_perf_value_ptr, zbx_vmware_perf_value_t *)
/* performance data for a performance collector entity */
typedef struct
{
/* entity type: HostSystem, datastore or VirtualMachine */
char *type;
/* entity id */
char *id;
/* performance counter values */
zbx_vector_vmware_perf_value_ptr_t values;
/* error information */
char *error;
}
zbx_vmware_perf_data_t;
ZBX_PTR_VECTOR_DECL(vmware_perf_data_ptr, zbx_vmware_perf_data_t *)
/* VMware performance counters available per object (information cache) */
ZBX_VECTOR_DECL(uint16, uint16_t)
typedef struct
{
char *type;
char *id;
zbx_vector_uint16_t list;
}