[master] 9de59a0 Update the documented JSON output format.
Lasse Karstensen
lkarsten at varnish-software.com
Mon Jul 6 16:34:57 CEST 2015
commit 9de59a05cebe9e90e011dca4c0e00b47e3289b99
Author: Lasse Karstensen <lkarsten at varnish-software.com>
Date: Mon Jul 6 16:34:07 2015 +0200
Update the documented JSON output format.
diff --git a/doc/sphinx/reference/varnishstat.rst b/doc/sphinx/reference/varnishstat.rst
index 8bef6e6..9213baf 100644
--- a/doc/sphinx/reference/varnishstat.rst
+++ b/doc/sphinx/reference/varnishstat.rst
@@ -71,7 +71,7 @@ The following options are available:
-x
Displays the result as XML.
--j
+-j
Displays the result as JSON.
CURSES MODE
@@ -181,10 +181,20 @@ With -j the output format is::
{
"timestamp": "YYYY-MM-DDTHH:mm:SS",
- "FIELD NAME": {"type": "FIELD TYPE", "ident": "FIELD IDENT", "value": FIELD VALUE, "flag": "FIELD SEMANTICS", "format": "FIELD DISPLAY FORMAT", "description": "FIELD DESCRIPTION"},
+ "FIELD NAME": {
+ "description": "FIELD DESCRIPTION",
+ "type": "FIELD TYPE", "ident": "FIELD IDENT", "flag": "FIELD SEMANTICS", "format": "FIELD DISPLAY FORMAT",
+ "value": FIELD VALUE,
+ },
+ "FIELD2 NAME": {
+ "description": "FIELD2 DESCRIPTION",
+ "type": "FIELD2 TYPE", "ident": "FIELD2 IDENT", "flag": "FIELD2 SEMANTICS", "format": "FIELD2 DISPLAY FORMAT",
+ "value": FIELD2 VALUE,
+ },
[..]
}
+
Type and ident are optional. Timestamp is the time when the report was
generated by varnishstat.
More information about the varnish-commit
mailing list