summaryrefslogtreecommitdiffstats
path: root/daemon/global_statistics.h
blob: 1ccc02e716da2ce45d98452b6e2dd13ae6ac2173 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef NETDATA_GLOBAL_STATISTICS_H
#define NETDATA_GLOBAL_STATISTICS_H 1

#include "common.h"

// ----------------------------------------------------------------------------
// global statistics

void rrdr_query_completed(uint64_t db_points_read, uint64_t result_points_generated);
void sqlite3_query_completed(bool success, bool busy, bool locked);
void sqlite3_row_completed(void);

void finished_web_request_statistics(uint64_t dt,
                                     uint64_t bytes_received,
                                     uint64_t bytes_sent,
                                     uint64_t content_size,
                                     uint64_t compressed_content_size);

uint64_t web_client_connected(void);
void web_client_disconnected(void);

extern bool global_statistics_enabled;

#endif /* NETDATA_GLOBAL_STATISTICS_H */