Source
static zbx_status_update_t *its_updates_append(zbx_vector_ptr_t *updates, zbx_uint64_t sourceid, int status, int clock)
/*
** Zabbix
** 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 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.
**/
extern ZBX_THREAD_LOCAL unsigned char process_type;
extern unsigned char program_type;
extern ZBX_THREAD_LOCAL int server_num, process_num;
extern int CONFIG_SERVICEMAN_SYNC_FREQUENCY;
/* keep deleted problem eventids up to 2 hours in case problem deletion arrived before problem or before recovery */
typedef struct
{
zbx_uint64_t eventid;
zbx_vector_ptr_t services;
}
zbx_service_problem_index_t;
typedef struct
{
zbx_uint64_t service_problem_tagid;
zbx_uint64_t current_eventid;
zbx_service_t *service;
char *tag;
char *value;
int op;
int revision;
}
zbx_service_problem_tag_t;
typedef struct
{
char *tag;
zbx_hashset_t values;
zbx_vector_ptr_t service_problem_tags_like;
}
zbx_tag_services_t;
typedef struct
{
char *value;
zbx_vector_ptr_t service_problem_tags;
}
zbx_values_eq_t;
typedef struct
{
zbx_uint64_t linkid;
int revision;
}
zbx_services_link_t;
typedef struct
{
zbx_uint64_t serviceid;
zbx_vector_ptr_t service_problems;
zbx_vector_ptr_t service_problems_recovered;
int flags;
}
zbx_services_diff_t;