diff options
author | erdgeist <> | 2007-12-04 23:57:29 +0000 |
---|---|---|
committer | erdgeist <> | 2007-12-04 23:57:29 +0000 |
commit | 31d876d53dfdafc4370b7c23febbb6978b271a77 (patch) | |
tree | 8ccc3959e75f5e61c5bf4acd6f96367c8793afca /ot_stats.h | |
parent | a146a328856a1f8b5099064f0262a34d5623021b (diff) |
Count invalid requests
Diffstat (limited to 'ot_stats.h')
-rw-r--r-- | ot_stats.h | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -17,11 +17,20 @@ typedef enum { | |||
17 | EVENT_SYNC_IN, | 17 | EVENT_SYNC_IN, |
18 | EVENT_SYNC_OUT_REQUEST, | 18 | EVENT_SYNC_OUT_REQUEST, |
19 | EVENT_SYNC_OUT, | 19 | EVENT_SYNC_OUT, |
20 | EVENT_FAILED_400, | 20 | EVENT_FAILED |
21 | EVENT_FAILED_404, | ||
22 | EVENT_FAILED_505 | ||
23 | } ot_status_event; | 21 | } ot_status_event; |
24 | 22 | ||
23 | enum { | ||
24 | CODE_HTTPERROR_400, | ||
25 | CODE_HTTPERROR_400_PARAM, | ||
26 | CODE_HTTPERROR_400_COMPACT, | ||
27 | CODE_HTTPERROR_403_IP, | ||
28 | CODE_HTTPERROR_404, | ||
29 | CODE_HTTPERROR_500, | ||
30 | |||
31 | CODE_HTTPERROR_COUNT | ||
32 | }; | ||
33 | |||
25 | void stats_issue_event( ot_status_event event, int is_tcp, size_t event_data ); | 34 | void stats_issue_event( ot_status_event event, int is_tcp, size_t event_data ); |
26 | size_t return_stats_for_tracker( char *reply, int mode, int format ); | 35 | size_t return_stats_for_tracker( char *reply, int mode, int format ); |
27 | void stats_init( ); | 36 | void stats_init( ); |