Structures and functions for statistics.
More...
#include <freeradius-devel/server/request.h>
Go to the source code of this file.
Structures and functions for statistics.
- Id
- 219a43bc46f6ca87c462201f4712361bfa57708b
- Copyright
- 2005, 2006, 2007, 2008 The FreeRADIUS server project
Definition in file stats.h.
◆ fr_stats_t
Definition at line 34 of file stats.h.
Data Fields |
uint64_t |
elapsed[8] |
|
time_t |
last_packet |
|
uint64_t |
total_access_accepts |
|
uint64_t |
total_access_challenges |
|
uint64_t |
total_access_rejects |
|
uint64_t |
total_bad_authenticators |
|
uint64_t |
total_dup_requests |
|
uint64_t |
total_invalid_requests |
|
uint64_t |
total_malformed_requests |
|
uint64_t |
total_no_records |
|
uint64_t |
total_packets_dropped |
|
uint64_t |
total_requests |
|
uint64_t |
total_responses |
|
uint64_t |
total_timeouts |
|
uint64_t |
total_unknown_types |
|
◆ FR_STATS_INC
#define FR_STATS_INC |
( |
|
_x, |
|
|
|
_y |
|
) |
| radius_ ## _x ## _stats._y++;if (listener) listener->stats._y++;if (client) client->_x._y++; |
◆ FR_STATS_TYPE_INC
#define FR_STATS_TYPE_INC |
( |
|
_x | ) |
_x++ |
◆ fr_stats_bins()
Sort latency times into bins.
This solves the problem of attempting to keep min/max/avg latencies, whilst not knowing what the polling frequency will be.
- Parameters
-
[out] | stats | Holding monotonically increasing stats bins. |
[in] | start | of the request. |
[in] | end | of the request. |
Definition at line 155 of file stats.c.
◆ request_stats_final()
void request_stats_final |
( |
request_t * |
request | ) |
|
◆ radius_acct_stats
◆ radius_auth_stats