diff options
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( ); |