The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
stats.h
Go to the documentation of this file.
1#pragma once
2/*
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
16 */
17
18/**
19 * $Id: 219a43bc46f6ca87c462201f4712361bfa57708b $
20 *
21 * @file lib/server/stats.h
22 * @brief Structures and functions for statistics.
23 *
24 * @copyright 2005, 2006, 2007, 2008 The FreeRADIUS server project
25 */
26RCSIDH(stats_h, "$Id: 219a43bc46f6ca87c462201f4712361bfa57708b $")
27
28#include <freeradius-devel/server/request.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
51
54
55void request_stats_final(request_t *request);
56void fr_stats_bins(fr_stats_t *stats, fr_time_t start, fr_time_t end);
57
58#define FR_STATS_INC(_x, _y) radius_ ## _x ## _stats._y++;if (listener) listener->stats._y++;if (client) client->_x._y++;
59#define FR_STATS_TYPE_INC(_x) _x++
60
61#ifdef __cplusplus
62}
63#endif
#define RCSIDH(h, id)
Definition build.h:484
uint64_t total_responses
Definition stats.h:38
uint64_t total_access_accepts
Definition stats.h:39
uint64_t total_timeouts
Definition stats.h:47
time_t last_packet
Definition stats.h:48
uint64_t total_unknown_types
Definition stats.h:46
uint64_t total_requests
Definition stats.h:35
void fr_stats_bins(fr_stats_t *stats, fr_time_t start, fr_time_t end)
Sort latency times into bins.
Definition stats.c:155
void request_stats_final(request_t *request)
Definition stats.c:45
uint64_t total_access_rejects
Definition stats.h:40
uint64_t total_packets_dropped
Definition stats.h:44
uint64_t total_no_records
Definition stats.h:45
fr_stats_t radius_auth_stats
Definition stats.c:42
uint64_t total_dup_requests
Definition stats.h:37
uint64_t total_access_challenges
Definition stats.h:41
fr_stats_t radius_acct_stats
Definition stats.c:43
uint64_t total_invalid_requests
Definition stats.h:36
uint64_t total_bad_authenticators
Definition stats.h:43
uint64_t total_malformed_requests
Definition stats.h:42
"server local" time.
Definition time.h:69