]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stats: support "show info typed" on the CLI
authorWilly Tarreau <w@1wt.eu>
Mon, 11 Jan 2016 19:08:42 +0000 (20:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Mar 2016 16:08:06 +0000 (17:08 +0100)
commitcb8091200101b96013459266138ab4a68cd5c049
treeb027e71d8437043b832128e80494d9f96947e1ef
parentb47785f8623191234733760c4030084d7d175929
MEDIUM: stats: support "show info typed" on the CLI

This emits the field positions, names and types. It is more convenient
than the default output for a parser that doesn't know all the fields. It
simply relies on stats_emit_typed_data_field() and stats_emit_field_tags()
added by previous patch for the output. A new stats format flag was added,
STAT_FMT_TYPED, which is set when the "typed" keyword is specified on the
CLI.
include/proto/dumpstats.h
src/dumpstats.c