The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Structures and functions for statistics. More...
#include <freeradius-devel/server/request.h>
Go to the source code of this file.
Data Structures | |
struct | fr_stats_ema_t |
struct | fr_stats_t |
Macros | |
#define | FR_STATS_INC(_x, _y) radius_ ## _x ## _stats._y++;if (listener) listener->stats._y++;if (client) client->_x._y++; |
#define | FR_STATS_TYPE_INC(_x) _x++ |
Typedefs | |
typedef uint32_t | fr_uint_t |
Functions | |
int | fr_snmp_init (void) |
Initialise the tree of SNMP map structures used to attach callbacks to OIDs. More... | |
int | fr_snmp_process (request_t *request) |
void | fr_stats_bins (fr_stats_t *stats, fr_time_t start, fr_time_t end) |
Sort latency times into bins. More... | |
void | radius_stats_ema (fr_stats_ema_t *ema, fr_time_t start, fr_time_t end) |
void | radius_stats_init (int flag) |
void | request_stats_final (request_t *request) |
Variables | |
fr_stats_t | radius_acct_stats |
fr_stats_t | radius_auth_stats |
Structures and functions for statistics.
Definition in file stats.h.
struct fr_stats_ema_t |
struct fr_stats_t |
Data Fields | ||
---|---|---|
fr_uint_t | elapsed[8] | |
time_t | last_packet | |
fr_uint_t | total_access_accepts | |
fr_uint_t | total_access_challenges | |
fr_uint_t | total_access_rejects | |
fr_uint_t | total_bad_authenticators | |
fr_uint_t | total_dup_requests | |
fr_uint_t | total_invalid_requests | |
fr_uint_t | total_malformed_requests | |
fr_uint_t | total_no_records | |
fr_uint_t | total_packets_dropped | |
fr_uint_t | total_requests | |
fr_uint_t | total_responses | |
fr_uint_t | total_timeouts | |
fr_uint_t | total_unknown_types |
int fr_snmp_init | ( | void | ) |
int fr_snmp_process | ( | request_t * | request | ) |
void fr_stats_bins | ( | fr_stats_t * | stats, |
fr_time_t | start, | ||
fr_time_t | end | ||
) |
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.
[out] | stats | Holding monotonically increasing stats bins. |
[in] | start | of the request. |
[in] | end | of the request. |
Definition at line 216 of file stats.c.
void radius_stats_ema | ( | fr_stats_ema_t * | ema, |
fr_time_t | start, | ||
fr_time_t | end | ||
) |
void radius_stats_init | ( | int | flag | ) |
void request_stats_final | ( | request_t * | request | ) |
|
extern |
|
extern |