Source
int webdriver_get_raw_perf_data(zbx_webdriver_t *wd, const char *type, struct zbx_json_parse *jp, char **error);
/*
** 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
{
int http_code;
char *error;
char *message;
}
zbx_wd_error_t;
typedef struct
{
CURL *handle;
struct curl_slist *headers;
char *data;
char *headers_in;
size_t data_alloc;
size_t data_offset;
size_t headers_in_alloc;
size_t headers_in_offset;
char *endpoint;
char *session;
zbx_wd_perf_t perf;
int refcount;
double create_time;
char *last_error_message;
zbx_wd_error_t *error;
void *browser;
zbx_es_env_t *env;
}
zbx_webdriver_t;
zbx_webdriver_t *webdriver_create(const char *endpoint, const char *sourceip, char **error);