Willy Tarreau | 9186126 | 2007-10-17 17:06:05 +0200 | [diff] [blame] | 1 | /* |
| 2 | include/proto/dumpstats.h |
| 3 | This file contains definitions of some primitives to dedicated to |
| 4 | statistics output. |
| 5 | |
| 6 | Copyright (C) 2000-2007 Willy Tarreau - w@1wt.eu |
| 7 | |
| 8 | This library is free software; you can redistribute it and/or |
| 9 | modify it under the terms of the GNU Lesser General Public |
| 10 | License as published by the Free Software Foundation, version 2.1 |
| 11 | exclusively. |
| 12 | |
| 13 | This library is distributed in the hope that it will be useful, |
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | Lesser General Public License for more details. |
| 17 | |
| 18 | You should have received a copy of the GNU Lesser General Public |
| 19 | License along with this library; if not, write to the Free Software |
| 20 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ |
| 22 | |
| 23 | #ifndef _PROTO_DUMPSTATS_H |
| 24 | #define _PROTO_DUMPSTATS_H |
| 25 | |
| 26 | #include <common/config.h> |
| 27 | #include <types/buffers.h> |
| 28 | #include <types/session.h> |
| 29 | |
Willy Tarreau | a8efd36 | 2008-01-03 10:19:15 +0100 | [diff] [blame] | 30 | #define STAT_FMT_HTML 0x1 |
| 31 | #define STAT_SHOW_STAT 0x2 |
| 32 | #define STAT_SHOW_INFO 0x4 |
Willy Tarreau | 55bb845 | 2007-10-17 18:44:57 +0200 | [diff] [blame] | 33 | |
Willy Tarreau | fbee713 | 2007-10-18 13:53:22 +0200 | [diff] [blame] | 34 | int stats_parse_global(const char **args, char *err, int errlen); |
Willy Tarreau | 3e76e72 | 2007-10-17 18:57:38 +0200 | [diff] [blame] | 35 | int stats_dump_raw(struct session *s, struct uri_auth *uri, int flags); |
Willy Tarreau | 9186126 | 2007-10-17 17:06:05 +0200 | [diff] [blame] | 36 | int stats_dump_http(struct session *s, struct uri_auth *uri, int flags); |
| 37 | int stats_dump_proxy(struct session *s, struct proxy *px, struct uri_auth *uri, int flags); |
| 38 | |
| 39 | |
| 40 | #endif /* _PROTO_DUMPSTATS_H */ |
| 41 | |
| 42 | /* |
| 43 | * Local variables: |
| 44 | * c-indent-level: 8 |
| 45 | * c-basic-offset: 8 |
| 46 | * End: |
| 47 | */ |