Source
void pb_add_json_field(struct zbx_json *j, zbx_history_table_t *history_table, const char *fld_name, void *value,
/*
** 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/>.
**/
/* the space reserved in json buffer to hold at least one record plus service data */
typedef enum
{
PB_DATABASE,
PB_DATABASE_MEMORY,
PB_MEMORY,
PB_MEMORY_DATABASE,
}
zbx_pb_state_t;
zbx_pb_state_t get_pb_dst(int i);
zbx_pb_state_t get_pb_src(int i);
typedef struct
{
zbx_uint64_t id;
zbx_uint64_t druleid;
zbx_uint64_t dcheckid;
zbx_uint64_t handleid;
char *dns;
char *ip;
char *value;
char *error;
int port;
int clock;
int status;
}
zbx_pb_discovery_t;