Krzysztof Piotr Oledzki | 8d06b8b | 2009-10-04 14:32:53 +0200 | [diff] [blame] | 1 | /* |
| 2 | include/types/counters.h |
| 3 | This file contains structure declarations for statistics counters. |
| 4 | |
| 5 | Copyright 2008-2009 Krzysztof Piotr Oledzki <ole@ans.pl> |
| 6 | |
| 7 | This library is free software; you can redistribute it and/or |
| 8 | modify it under the terms of the GNU Lesser General Public |
| 9 | License as published by the Free Software Foundation, version 2.1 |
| 10 | exclusively. |
| 11 | |
| 12 | This library is distributed in the hope that it will be useful, |
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | Lesser General Public License for more details. |
| 16 | |
| 17 | You should have received a copy of the GNU Lesser General Public |
| 18 | License along with this library; if not, write to the Free Software |
| 19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ |
| 21 | |
| 22 | #ifndef _TYPES_COUNTERS_H |
| 23 | #define _TYPES_COUNTERS_H |
| 24 | |
| 25 | struct pxcounters { |
| 26 | unsigned int feconn_max, beconn_max; /* max # of active frontend and backend sessions */ |
| 27 | |
| 28 | long long cum_feconn, cum_beconn; /* cumulated number of processed sessions */ |
| 29 | long long cum_lbconn; /* cumulated number of sessions processed by load balancing */ |
| 30 | |
| 31 | long long bytes_in; /* number of bytes transferred from the client to the server */ |
| 32 | long long bytes_out; /* number of bytes transferred from the server to the client */ |
| 33 | |
| 34 | long long denied_req, denied_resp; /* blocked requests/responses because of security concerns */ |
| 35 | long long failed_req; /* failed requests (eg: invalid or timeout) */ |
| 36 | |
| 37 | long long failed_conns, failed_resp; /* failed connect() and responses */ |
| 38 | long long retries, redispatches; /* retried and redispatched connections */ |
| 39 | }; |
| 40 | |
| 41 | struct licounters { |
| 42 | unsigned int conn_max; /* max # of active listener sessions */ |
| 43 | |
| 44 | long long cum_conn; /* cumulated number of processed sessions */ |
| 45 | |
| 46 | long long bytes_in; /* number of bytes transferred from the client to the server */ |
| 47 | long long bytes_out; /* number of bytes transferred from the server to the client */ |
| 48 | |
| 49 | long long denied_req, denied_resp; /* blocked requests/responses because of security concerns */ |
| 50 | long long failed_req; /* failed requests (eg: invalid or timeout) */ |
| 51 | }; |
| 52 | |
| 53 | struct srvcounters { |
| 54 | long long cum_sess; /* cumulated number of sessions really sent to this server */ |
| 55 | long long cum_lbconn; /* cumulated number of sessions directed by load balancing */ |
| 56 | |
| 57 | long long bytes_in; /* number of bytes transferred from the client to the server */ |
| 58 | long long bytes_out; /* number of bytes transferred from the server to the client */ |
| 59 | |
| 60 | long long failed_conns, failed_resp; /* failed connect() and responses */ |
| 61 | long long retries, redispatches; /* retried and redispatched connections */ |
| 62 | long long failed_secu; /* blocked responses because of security concerns */ |
| 63 | |
| 64 | long long failed_checks, down_trans; /* failed checks and up->down transitions */ |
| 65 | }; |
| 66 | |
| 67 | #endif /* _TYPES_COUNTERS_H */ |
| 68 | |
| 69 | /* |
| 70 | * Local variables: |
| 71 | * c-indent-level: 8 |
| 72 | * c-basic-offset: 8 |
| 73 | * End: |
| 74 | */ |