| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | #ifndef NETDATA_QUERY_PROGRESS_H |
| 4 | #define NETDATA_QUERY_PROGRESS_H 1 |
| 5 | |
| 6 | #include "../libnetdata.h" |
| 7 | |
| 8 | void query_progress_start_or_update(nd_uuid_t *transaction, usec_t started_ut, HTTP_REQUEST_MODE mode, HTTP_ACL acl, const char *query, BUFFER *payload, const char *client); |
| 9 | void query_progress_done_step(nd_uuid_t *transaction, size_t done); |
| 10 | void query_progress_set_finish_line(nd_uuid_t *transaction, size_t all); |
| 11 | void query_progress_finished(nd_uuid_t *transaction, usec_t finished_ut, short int response_code, usec_t duration_ut, size_t response_size, size_t sent_size); |
| 12 | void query_progress_functions_update(nd_uuid_t *transaction, size_t done, size_t all); |
| 13 | |
| 14 | int web_api_v2_report_progress(nd_uuid_t *transaction, BUFFER *wb); |
| 15 | |
| 16 | #define RRDFUNCTIONS_PROGRESS_HELP "Monitors active and recent Netdata API requests with transaction details, duration, and response sizes." |
| 17 | int progress_function_result(BUFFER *wb, const char *hostname); |
| 18 | |
| 19 | #endif // NETDATA_QUERY_PROGRESS_H |